mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
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>
This commit is contained in:
parent
c826c5698b
commit
c5ddd75354
@ -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++) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user