diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-22 11:56:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-22 11:56:56 +0000 |
commit | 3a756169401ba57e78a57ec10e1a5b9b688a8e79 (patch) | |
tree | db15940ee2c89f4375e0327eca564a4597c0ad49 | |
parent | 3a9b190c54e84a6c3ce2557e0f9e7820987a3ffe (diff) | |
download | ffmpeg-3a756169401ba57e78a57ec10e1a5b9b688a8e79.tar.gz |
Deobfusate chroma_qp_table[1] init code.
Originally committed as revision 14334 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 06d4947a69..1d5d378cf1 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -7430,11 +7430,9 @@ static inline int decode_picture_parameter_set(H264Context *h, int bit_length){ } build_qp_table(pps, 0, pps->chroma_qp_index_offset[0]); - if(pps->chroma_qp_index_offset[0] != pps->chroma_qp_index_offset[1]) { - build_qp_table(pps, 1, pps->chroma_qp_index_offset[1]); + build_qp_table(pps, 1, pps->chroma_qp_index_offset[1]); + if(pps->chroma_qp_index_offset[0] != pps->chroma_qp_index_offset[1]) h->pps.chroma_qp_diff= 1; - } else - memcpy(pps->chroma_qp_table[1], pps->chroma_qp_table[0], 256); if(s->avctx->debug&FF_DEBUG_PICT_INFO){ av_log(h->s.avctx, AV_LOG_DEBUG, "pps:%u sps:%u %s slice_groups:%d ref:%d/%d %s qp:%d/%d/%d/%d %s %s %s %s\n", |