av_frame_unref() works fine on unallocated frames.
---
 libavcodec/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d1a1510..e9d6734 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1478,7 +1478,7 @@ int attribute_align_arg 
avcodec_decode_audio4(AVCodecContext *avctx,
                 frame->extended_buf    = NULL;
                 frame->nb_extended_buf = 0;
             }
-        } else if (frame->data[0])
+        } else
             av_frame_unref(frame);
     }
 
-- 
1.7.10.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to