X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fdecode.h;h=d4e3f5c5b510c916491585d1d24d52e7894bf2f8;hb=9e05421dbe0c733dca2a39f8399db86acc7e82bc;hp=c3e0e82f4cdacc36c4bdd124022349c62b2b74ea;hpb=493240a522fca34882601fbeeda4e17aa40a0303;p=ffmpeg diff --git a/libavcodec/decode.h b/libavcodec/decode.h index c3e0e82f4cd..d4e3f5c5b51 100644 --- a/libavcodec/decode.h +++ b/libavcodec/decode.h @@ -64,9 +64,16 @@ typedef struct FrameDecodeData { */ int ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt); -int ff_decode_bsfs_init(AVCodecContext *avctx); +/** + * Set various frame properties from the codec context / packet data. + */ +int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame); -void ff_decode_bsfs_uninit(AVCodecContext *avctx); +/** + * Called during avcodec_open2() to initialize avctx->internal->bsf. + * The bsf should be freed with av_bsf_free(). + */ +int ff_decode_bsfs_init(AVCodecContext *avctx); /** * Make sure avctx.hw_frames_ctx is set. If it's not set, the function will