diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-02 15:04:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-02 15:07:51 +0200 |
commit | c5ddd753549c8fb1754503ff6690a0e77e3005e5 (patch) | |
tree | a539b6d60a2edcc3ff42ce0a03d5e29c7cfbb2f3 /libavformat | |
parent | c826c5698b9c24c5992a76ab73f7c991bb3073eb (diff) | |
download | ffmpeg-c5ddd753549c8fb1754503ff6690a0e77e3005e5.tar.gz |
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@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 962370c7ec..9577968d4f 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++) { |