summaryrefslogtreecommitdiffstats
path: root/libavcodec/internal.h
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2019-04-14 22:12:25 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2019-04-20 10:38:01 +0530
commit3153a6502a28b20a0da822daf32bcd8f7c90d721 (patch)
treef3673539f54af82ab363d813eb42cd72048105e8 /libavcodec/internal.h
parentd93e44332f1bd2be90eb637268385a5acd8f6c10 (diff)
downloadffmpeg-streaming-3153a6502a28b20a0da822daf32bcd8f7c90d721.zip
ffmpeg-streaming-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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index f2e6f00..5096ffa 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 {
OpenPOWER on IntegriCloud