Commit c6f1f334 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '792b9c9d'

* commit '792b9c9d':
  h264: set frame_num in start_frame(), not decode_slice_header()
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents bc66451e 792b9c9d
......@@ -595,6 +595,7 @@ static int h264_frame_start(H264Context *h)
pic->reference = h->droppable ? 0 : h->picture_structure;
pic->f->coded_picture_number = h->coded_picture_number++;
pic->field_picture = h->picture_structure != PICT_FRAME;
pic->frame_num = h->frame_num;
/*
* Zero key_frame here; IDR markings per slice in frame or fields are ORed
......@@ -1665,9 +1666,6 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
}
}
if (!h->setup_finished)
h->cur_pic_ptr->frame_num = h->frame_num; // FIXME frame_num cleanup
av_assert1(h->mb_num == h->mb_width * h->mb_height);
if (first_mb_in_slice << FIELD_OR_MBAFF_PICTURE(h) >= h->mb_num ||
first_mb_in_slice >= h->mb_num) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment