Release unused pictures even when not calling ff_h264_frame_start()
authorRonald Bultje <rbultje@google.com>
Mon, 11 Apr 2011 18:58:11 +0000 (14:58 -0400)
committerAlexander Strange <astrange@ithinksw.com>
Tue, 12 Apr 2011 06:21:24 +0000 (02:21 -0400)
commit48d2183d902db7cc42c9f84d2bad6eccc35d0221
treeb7a8c492173e321a1c7fea4f7850a81bd8033e1c
parent51ead6d2c40c5defdd211f435aec49b19f5f6a18
Release unused pictures even when not calling ff_h264_frame_start()

Unused pictures assigned to the thread can build up and cause it to
run out of buffers if the thread only ever decodes bottom field pictures.
libavcodec/h264.c
libavcodec/mpegvideo.c
libavcodec/mpegvideo.h