diff options
author | Stephen Warren <> | 2009-03-06 08:03:26 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-03-06 08:03:26 +0000 |
commit | 49caac24132c06e2f14b275da9048588c7da63d0 (patch) | |
tree | ec9c6fc96ebfe4e5f823bc109cd8a45d9140fa55 /libavcodec/vdpau.c | |
parent | 57f94f54c449b1d34b0d6ccf82dfdcdc1ce7cd14 (diff) | |
download | ffmpeg-49caac24132c06e2f14b275da9048588c7da63d0.tar.gz |
Fix H.264 bitstream field log2_max_pic_order_cnt_lsb_minus4
if sps.poc_type == 0.
Patch by Stephen Warren, swarren nvidia com
Originally committed as revision 17854 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r-- | libavcodec/vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 034228d7d8..4a7c86c0a8 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -165,7 +165,7 @@ void ff_vdpau_h264_picture_complete(MpegEncContext *s) render->info.h264.num_ref_idx_l1_active_minus1 = h->pps.ref_count[1] - 1; render->info.h264.log2_max_frame_num_minus4 = h->sps.log2_max_frame_num - 4; render->info.h264.pic_order_cnt_type = h->sps.poc_type; - render->info.h264.log2_max_pic_order_cnt_lsb_minus4 = h->sps.log2_max_poc_lsb - 4; + render->info.h264.log2_max_pic_order_cnt_lsb_minus4 = h->sps.poc_type ? 0 : h->sps.log2_max_poc_lsb - 4; render->info.h264.delta_pic_order_always_zero_flag = h->sps.delta_pic_order_always_zero_flag; render->info.h264.direct_8x8_inference_flag = h->sps.direct_8x8_inference_flag; render->info.h264.entropy_coding_mode_flag = h->pps.cabac; |