mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-06 10:13:47 +02:00
ffmpeg: drop usage of coded_frame
It causes all kinds of problems and there is no code in the muxers that reads this field Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5a57f389f4
commit
242f1152bf
6
ffmpeg.c
6
ffmpeg.c
@ -1018,10 +1018,8 @@ static void do_video_out(AVFormatContext *s,
|
|||||||
/* raw pictures are written as AVPicture structure to
|
/* raw pictures are written as AVPicture structure to
|
||||||
avoid any copies. We support temporarily the older
|
avoid any copies. We support temporarily the older
|
||||||
method. */
|
method. */
|
||||||
mux_enc->coded_frame->interlaced_frame = in_picture->interlaced_frame;
|
if (in_picture->interlaced_frame)
|
||||||
mux_enc->coded_frame->top_field_first = in_picture->top_field_first;
|
mux_enc->field_order = in_picture->top_field_first ? AV_FIELD_TB:AV_FIELD_BT;
|
||||||
if (mux_enc->coded_frame->interlaced_frame)
|
|
||||||
mux_enc->field_order = mux_enc->coded_frame->top_field_first ? AV_FIELD_TB:AV_FIELD_BT;
|
|
||||||
else
|
else
|
||||||
mux_enc->field_order = AV_FIELD_PROGRESSIVE;
|
mux_enc->field_order = AV_FIELD_PROGRESSIVE;
|
||||||
pkt.data = (uint8_t *)in_picture;
|
pkt.data = (uint8_t *)in_picture;
|
||||||
|
Loading…
Reference in New Issue
Block a user