mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-18 14:54:19 +08:00
h264: move cabac_init_idc into the per-slice context
This commit is contained in:
@@ -608,7 +608,7 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
|
||||
copy_fields(h, h1, poc_lsb, redundant_pic_count);
|
||||
|
||||
// reference lists
|
||||
copy_fields(h, h1, short_ref, cabac_init_idc);
|
||||
copy_fields(h, h1, short_ref, thread_context);
|
||||
|
||||
copy_picture_range(h->short_ref, h1->short_ref, 32, h, h1);
|
||||
copy_picture_range(h->long_ref, h1->long_ref, 32, h, h1);
|
||||
@@ -1657,7 +1657,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl, H264Contex
|
||||
av_log(h->avctx, AV_LOG_ERROR, "cabac_init_idc %u overflow\n", tmp);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
h->cabac_init_idc = tmp;
|
||||
sl->cabac_init_idc = tmp;
|
||||
}
|
||||
|
||||
sl->last_qscale_diff = 0;
|
||||
|
Reference in New Issue
Block a user