mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-22 06:46:59 +00:00
avcodec/avcodec: Remove AV_CODEC_FLAG2_DROP_FRAME_TIMECODE
It has been deprecated in 94d68a41fa
and can't be set via AVOptions. The only codecs that use it
(the MPEG-1/2 encoders) have private options for this.
So remove it.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
59c9dc82f4
commit
f843460eb7
@ -352,11 +352,6 @@ typedef struct RcOverride{
|
||||
*/
|
||||
#define AV_CODEC_FLAG2_LOCAL_HEADER (1 << 3)
|
||||
|
||||
/**
|
||||
* timecode is in drop frame format. DEPRECATED!!!!
|
||||
*/
|
||||
#define AV_CODEC_FLAG2_DROP_FRAME_TIMECODE (1 << 13)
|
||||
|
||||
/**
|
||||
* Input bitstream might be truncated at a packet boundaries
|
||||
* instead of only at frame boundaries.
|
||||
|
@ -249,7 +249,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
||||
}
|
||||
}
|
||||
|
||||
mpeg12->drop_frame_timecode = mpeg12->drop_frame_timecode || !!(avctx->flags2 & AV_CODEC_FLAG2_DROP_FRAME_TIMECODE);
|
||||
if (mpeg12->drop_frame_timecode)
|
||||
mpeg12->tc.flags |= AV_TIMECODE_FLAG_DROPFRAME;
|
||||
if (mpeg12->drop_frame_timecode && mpeg12->frame_rate_index != 4) {
|
||||
|
Loading…
Reference in New Issue
Block a user