mirror of https://git.ffmpeg.org/ffmpeg.git
Set pict->interlaced_frame if returned frame is MBAFF or PAFF.
Originally committed as revision 10703 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ce3132be88
commit
2fe279f9f9
|
@ -7843,6 +7843,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||||
/* we substract 1 because it is added on utils.c */
|
/* we substract 1 because it is added on utils.c */
|
||||||
avctx->frame_number = s->picture_number - 1;
|
avctx->frame_number = s->picture_number - 1;
|
||||||
#endif
|
#endif
|
||||||
|
pict->interlaced_frame = FIELD_OR_MBAFF_PICTURE;
|
||||||
return get_consumed_bytes(s, buf_index, buf_size);
|
return get_consumed_bytes(s, buf_index, buf_size);
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in New Issue