X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.h;h=30890a0ee85f9561c46273d20203ebde17d0deae;hb=451469fd1aa141b15baea06a66e2404721de1e0b;hp=3783e2cc501c34c2f3dd42f703c6b5891988fd9f;hpb=48a691630833d6b12905475b6bf39fef285872a9;p=ffmpeg diff --git a/ffmpeg.h b/ffmpeg.h index 3783e2cc501..30890a0ee85 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,7 +242,9 @@ 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; AVFrame *decoded_frame; AVFrame *filter_frame; /* a ref of decoded_frame, to be sent to filters */ @@ -377,6 +381,7 @@ typedef struct OutputStream { /* dts of the last packet sent to the muxer */ int64_t last_mux_dts; AVBitStreamFilterContext *bitstream_filters; + AVCodecContext *enc_ctx; AVCodec *enc; int64_t max_frames; AVFrame *filtered_frame; @@ -501,7 +506,7 @@ void assert_avoptions(AVDictionary *m); int guess_input_channel_layout(InputStream *ist); -enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodec *codec, enum AVPixelFormat target); +enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodecContext *avctx, AVCodec *codec, enum AVPixelFormat target); void choose_sample_fmt(AVStream *st, AVCodec *codec); int configure_filtergraph(FilterGraph *fg);