[FFmpeg-cvslog] av_find_stream_info: initialize ret
Michael Niedermayer
git at videolan.org
Tue Jul 2 15:14:17 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 2 15:00:28 2013 +0200| [ccba9535dc3500854f738ea082286f780a22a56f] | committer: Michael Niedermayer
av_find_stream_info: initialize ret
This should fix hypothetical corner cases where it might have never been initialized before use
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ccba9535dc3500854f738ea082286f780a22a56f
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1f59b31..af2f967 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2621,7 +2621,7 @@ int av_find_stream_info(AVFormatContext *ic)
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{
- int i, count, ret, j;
+ int i, count, ret = 0, j;
int64_t read_size;
AVStream *st;
AVPacket pkt1, *pkt;
More information about the ffmpeg-cvslog
mailing list