[FFmpeg-cvslog] lavc: remove a pointless check in decode_audio4()

Anton Khirnov git at videolan.org
Mon Dec 9 17:14:19 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Nov 29 20:19:27 2013 +0100| [85f947aefb3dae81f65f518acdffa8e31c679654] | committer: Anton Khirnov

lavc: remove a pointless check in decode_audio4()

av_frame_unref() works fine on unallocated frames.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=85f947aefb3dae81f65f518acdffa8e31c679654
---

 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);
     }
 



More information about the ffmpeg-cvslog mailing list