On Tue, Mar 4, 2014 at 10:08 PM, Janne Grunau <[email protected]> wrote:
> On 2014-03-04 19:24:32 +0100, Vittorio Giovara wrote:
>> ---
>>  libavcodec/h264.c | 10 +++++-----
>>  1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/libavcodec/h264.c b/libavcodec/h264.c
>> index c76abf7..76cdb0c 100644
>> --- a/libavcodec/h264.c
>> +++ b/libavcodec/h264.c
>> @@ -212,8 +212,8 @@ static void h264_er_decode_mb(void *opaque, int ref, int 
>> mv_dir, int mv_type,
>>  void ff_h264_draw_horiz_band(H264Context *h, int y, int height)
>>  {
>>      AVCodecContext *avctx = h->avctx;
>> -    Picture *cur  = &h->cur_pic;
>> -    Picture *last = h->ref_list[0][0].f.data[0] ? &h->ref_list[0][0] : NULL;
>> +    AVFrame *cur  = &h->cur_pic.f;
>> +    AVFrame *last = &h->ref_list[0][0].f;
>
> this changes behaviour, last will never null, you have to keep the
> check for h->ref_list[0][0].f.data[0]

Oh right, amended, thank you.
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to