]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wnv1.c
fix linking on systems with a function name prefix (10l in r20287)
[ffmpeg] / libavcodec / wnv1.c
index aec474f2dea0a521922c707189af5076575b78e5..9a5a77fe78e8b92a6c0ee0660072a8b83b84827a 100644 (file)
@@ -143,6 +143,16 @@ static av_cold int decode_init(AVCodecContext *avctx){
     return 0;
 }
 
+static av_cold int decode_end(AVCodecContext *avctx){
+    WNV1Context * const l = avctx->priv_data;
+    AVFrame *pic = &l->pic;
+
+    if (pic->data[0])
+        avctx->release_buffer(avctx, pic);
+
+    return 0;
+}
+
 AVCodec wnv1_decoder = {
     "wnv1",
     CODEC_TYPE_VIDEO,
@@ -150,7 +160,7 @@ AVCodec wnv1_decoder = {
     sizeof(WNV1Context),
     decode_init,
     NULL,
-    NULL,
+    decode_end,
     decode_frame,
     CODEC_CAP_DR1,
     .long_name = NULL_IF_CONFIG_SMALL("Winnov WNV1"),