diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-28 17:40:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-06-12 11:44:13 +0200 |
commit | 99d26939af3f0ef80f56debe458006abec3cbc71 (patch) | |
tree | 7307014c20860e7ca5b1a4560c0739769b62936e /libavcodec/rv10.c | |
parent | b90b6764093a40d6b2064cdd07c4c715c934ebf1 (diff) | |
download | ffmpeg-99d26939af3f0ef80f56debe458006abec3cbc71.tar.gz |
avcodec/mpegvideo_dec: Add close function for mpegvideo-decoders
Currently identical to the H.261 and H.263 close functions
(which it replaces). It will be extended in future commits.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r-- | libavcodec/rv10.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 201e7ed6d0..6ece6a5a25 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -416,14 +416,6 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx) return 0; } -static av_cold int rv10_decode_end(AVCodecContext *avctx) -{ - MpegEncContext *s = avctx->priv_data; - - ff_mpv_common_end(s); - return 0; -} - static int rv10_decode_packet(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int buf_size2, int whole_size) { @@ -666,8 +658,8 @@ const FFCodec ff_rv10_decoder = { .p.id = AV_CODEC_ID_RV10, .priv_data_size = sizeof(RVDecContext), .init = rv10_decode_init, - .close = rv10_decode_end, FF_CODEC_DECODE_CB(rv10_decode_frame), + .close = ff_mpv_decode_close, .p.capabilities = AV_CODEC_CAP_DR1, .p.max_lowres = 3, }; @@ -679,8 +671,8 @@ const FFCodec ff_rv20_decoder = { .p.id = AV_CODEC_ID_RV20, .priv_data_size = sizeof(RVDecContext), .init = rv10_decode_init, - .close = rv10_decode_end, FF_CODEC_DECODE_CB(rv10_decode_frame), + .close = ff_mpv_decode_close, .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, .flush = ff_mpeg_flush, .p.max_lowres = 3, |