mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-30 04:02:04 +08:00
Revert "Merge commit 'd1d7678040cd60148f97b372cb4291bcc45b2e22'"
This reverts commit796027f221, reversing changes made tobca30ed2b6. Preemptive revert before further testing has been done.
This commit is contained in:
@@ -1497,8 +1497,6 @@ static int h264_field_start(H264Context *h, const H264SliceContext *sl,
|
||||
h->nb_mmco = sl->nb_mmco;
|
||||
h->explicit_ref_marking = sl->explicit_ref_marking;
|
||||
|
||||
h->picture_idr = nal->type == H264_NAL_IDR_SLICE;
|
||||
|
||||
/* Set the frame properties/side data. Only done for the second field in
|
||||
* field coded frames, since some SEI information is present for each field
|
||||
* and is merged by the SEI parsing code. */
|
||||
@@ -1831,11 +1829,6 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl,
|
||||
}
|
||||
}
|
||||
|
||||
if (h->picture_idr && nal->type != H264_NAL_IDR_SLICE) {
|
||||
av_log(h->avctx, AV_LOG_ERROR, "Invalid mix of IDR and non-IDR slices\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
av_assert1(h->mb_num == h->mb_width * h->mb_height);
|
||||
if (sl->first_mb_addr << FIELD_OR_MBAFF_PICTURE(h) >= h->mb_num ||
|
||||
sl->first_mb_addr >= h->mb_num) {
|
||||
|
||||
Reference in New Issue
Block a user