[FFmpeg-cvslog] avformat_find_stream_info: Do not consider no streams an error in flush codecs

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:04:13 2013 +0200| [c5ddd753549c8fb1754503ff6690a0e77e3005e5] | committer: Michael Niedermayer

avformat_find_stream_info: Do not consider no streams an error in flush codecs

This should have no functional effect, but allows a cleaner diff when moving it
down

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

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 962370c..9577968 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2888,7 +2888,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
         int err = 0;
         av_init_packet(&empty_pkt);
 
-        if (ret >= 0)
+        if (ret >= 0 && ic->nb_streams)
         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