aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-28 17:40:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-06-12 11:44:13 +0200
commit99d26939af3f0ef80f56debe458006abec3cbc71 (patch)
tree7307014c20860e7ca5b1a4560c0739769b62936e /libavcodec/rv34.c
parentb90b6764093a40d6b2064cdd07c4c715c934ebf1 (diff)
downloadffmpeg-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/rv34.c')
-rw-r--r--libavcodec/rv34.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 6424c7b982..9e087cb16c 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -1522,10 +1522,9 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
ff_h264_pred_init(&r->h, AV_CODEC_ID_RV40, 8, 1);
- if ((ret = rv34_decoder_alloc(r)) < 0) {
- ff_mpv_common_end(&r->s);
+ ret = rv34_decoder_alloc(r);
+ if (ret < 0)
return ret;
- }
ff_thread_once(&init_static_once, rv34_init_tables);
@@ -1823,8 +1822,7 @@ av_cold int ff_rv34_decode_end(AVCodecContext *avctx)
{
RV34DecContext *r = avctx->priv_data;
- ff_mpv_common_end(&r->s);
rv34_decoder_free(r);
- return 0;
+ return ff_mpv_decode_close(avctx);
}