aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.h
diff options
context:
space:
mode:
authorMichael Niedermayer2014-05-31 05:53:06 +0200
committerMichael Niedermayer2014-06-07 21:26:22 +0200
commit01ef127bf8556c934262f96d6876e4479bba9d5f (patch)
tree5884463baae9e4b9f3bea1802ec35688a719f520 /ffmpeg.h
parent5affab960cd50c6cf83ba05e3c24b3e6c1a9e733 (diff)
ffmpeg: support setting AVStream.discard
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.h')
-rw-r--r--ffmpeg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.h b/ffmpeg.h
index a794255e6f..30890a0ee8 100644
--- a/ffmpeg.h
+++ b/ffmpeg.h
@@ -204,6 +204,8 @@ typedef struct OptionsContext {
int nb_guess_layout_max;
SpecifierOpt *apad;
int nb_apad;
+ SpecifierOpt *discard;
+ int nb_discard;
} OptionsContext;
typedef struct InputFilter {
@@ -240,6 +242,7 @@ typedef struct InputStream {
int file_index;
AVStream *st;
int discard; /* true if stream data should be discarded */
+ int user_set_discard;
int decoding_needed; /* true if the packets must be decoded in 'raw_fifo' */
AVCodecContext *dec_ctx;
AVCodec *dec;