|
|
@ -2983,8 +2983,7 @@ static int field_end(H264Context *h, int in_setup) |
|
|
|
* past end by one (callers fault) and resync_mb_y != 0 |
|
|
|
* past end by one (callers fault) and resync_mb_y != 0 |
|
|
|
* causes problems for the first MB line, too. |
|
|
|
* causes problems for the first MB line, too. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
if (CONFIG_ERROR_RESILIENCE && |
|
|
|
if (CONFIG_ERROR_RESILIENCE && !FIELD_PICTURE(h) && h->current_slice && !h->sps.new) { |
|
|
|
!FIELD_PICTURE(h) && h->current_slice && !h->sps.new) { |
|
|
|
|
|
|
|
h->er.cur_pic = h->cur_pic_ptr; |
|
|
|
h->er.cur_pic = h->cur_pic_ptr; |
|
|
|
ff_er_frame_end(&h->er); |
|
|
|
ff_er_frame_end(&h->er); |
|
|
|
} |
|
|
|
} |
|
|
@ -4758,7 +4757,9 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size, |
|
|
|
decode_rbsp_trailing(h, ptr + dst_length - 1)); |
|
|
|
decode_rbsp_trailing(h, ptr + dst_length - 1)); |
|
|
|
|
|
|
|
|
|
|
|
if (h->avctx->debug & FF_DEBUG_STARTCODE) |
|
|
|
if (h->avctx->debug & FF_DEBUG_STARTCODE) |
|
|
|
av_log(h->avctx, AV_LOG_DEBUG, "NAL %d/%d at %d/%d length %d pass %d\n", hx->nal_unit_type, hx->nal_ref_idc, buf_index, buf_size, dst_length, pass); |
|
|
|
av_log(h->avctx, AV_LOG_DEBUG, |
|
|
|
|
|
|
|
"NAL %d/%d at %d/%d length %d pass %d\n", |
|
|
|
|
|
|
|
hx->nal_unit_type, hx->nal_ref_idc, buf_index, buf_size, dst_length, pass); |
|
|
|
|
|
|
|
|
|
|
|
if (h->is_avc && (nalsize != consumed) && nalsize) |
|
|
|
if (h->is_avc && (nalsize != consumed) && nalsize) |
|
|
|
av_log(h->avctx, AV_LOG_DEBUG, |
|
|
|
av_log(h->avctx, AV_LOG_DEBUG, |
|
|
|