1
0
Fork 0

HACK: Don't return -1 in avformat_find_stream_info when codec details are still unknown.

This commit is contained in:
Hendrik Leppkes 2012-04-05 20:21:29 +02:00
parent 98247d2d82
commit a94b6aa6cf
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 1 additions and 1 deletions

View File

@ -3041,7 +3041,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
if (ret >= 0 && ic->nb_streams)
/* We could not have all the codec parameters before EOF. */
ret = -1;
ret = 0;
for (unsigned i = 0; i < ic->nb_streams; i++) {
AVStream *const st = ic->streams[i];
FFStream *const sti = ffstream(st);