diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2019-04-14 22:12:25 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2019-04-20 10:38:01 +0530 |
commit | 3153a6502a28b20a0da822daf32bcd8f7c90d721 (patch) | |
tree | f3673539f54af82ab363d813eb42cd72048105e8 /libavcodec/internal.h | |
parent | d93e44332f1bd2be90eb637268385a5acd8f6c10 (diff) | |
download | ffmpeg-3153a6502a28b20a0da822daf32bcd8f7c90d721.tar.gz |
avcodec: add AV_CODEC_FLAG_DROPCHANGED to flags
Discard decoded frames which differ from first decoded frame in stream.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index f2e6f00ace..5096ffa1d9 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -218,6 +218,14 @@ typedef struct AVCodecInternal { /* to prevent infinite loop on errors when draining */ int nb_draining_errors; + + /* used when avctx flag AV_CODEC_FLAG_DROPCHANGED is set */ + int changed_frames_dropped; + int initial_format; + int initial_width, initial_height; + int initial_sample_rate; + int initial_channels; + uint64_t initial_channel_layout; } AVCodecInternal; struct AVCodecDefault { |