comparison vdpau.c @ 11554:30f5bf824f04 libavcodec

Fix VDPAU for H.264 streams with long reference frames. Patch by Stephen Warren.
author cehoyos
date Tue, 30 Mar 2010 07:52:44 +0000
parents 63837bcce840
children e603f624b03f
comparison
equal deleted inserted replaced
11553:d35c3095f96b 11554:30f5bf824f04
52 rf = &render->info.h264.referenceFrames[0]; 52 rf = &render->info.h264.referenceFrames[0];
53 #define H264_RF_COUNT FF_ARRAY_ELEMS(render->info.h264.referenceFrames) 53 #define H264_RF_COUNT FF_ARRAY_ELEMS(render->info.h264.referenceFrames)
54 54
55 for (list = 0; list < 2; ++list) { 55 for (list = 0; list < 2; ++list) {
56 Picture **lp = list ? h->long_ref : h->short_ref; 56 Picture **lp = list ? h->long_ref : h->short_ref;
57 int ls = list ? h->long_ref_count : h->short_ref_count; 57 int ls = list ? 16 : h->short_ref_count;
58 58
59 for (i = 0; i < ls; ++i) { 59 for (i = 0; i < ls; ++i) {
60 pic = lp[i]; 60 pic = lp[i];
61 if (!pic || !pic->reference) 61 if (!pic || !pic->reference)
62 continue; 62 continue;