Commit 72bf5032 authored by cehoyos's avatar cehoyos

Fix VDPAU for H.264 streams with long reference frames.

Patch by Stephen Warren.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22727 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 872ccb4f
...@@ -54,7 +54,7 @@ void ff_vdpau_h264_set_reference_frames(MpegEncContext *s) ...@@ -54,7 +54,7 @@ void ff_vdpau_h264_set_reference_frames(MpegEncContext *s)
for (list = 0; list < 2; ++list) { for (list = 0; list < 2; ++list) {
Picture **lp = list ? h->long_ref : h->short_ref; Picture **lp = list ? h->long_ref : h->short_ref;
int ls = list ? h->long_ref_count : h->short_ref_count; int ls = list ? 16 : h->short_ref_count;
for (i = 0; i < ls; ++i) { for (i = 0; i < ls; ++i) {
pic = lp[i]; pic = lp[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment