[FFmpeg-cvslog] avformat_find_stream_info: try to preserve the error code

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:02:55 2013 +0200| [c826c5698b9c24c5992a76ab73f7c991bb3073eb] | committer: Michael Niedermayer

avformat_find_stream_info: try to preserve the error code

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/utils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index af2f967..962370c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2888,6 +2888,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
         int err = 0;
         av_init_packet(&empty_pkt);
 
+        if (ret >= 0)
         ret = -1; /* we could not have all the codec parameters before EOF */
         for(i=0;i<ic->nb_streams;i++) {
 



More information about the ffmpeg-cvslog mailing list