Commit c826c569 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat_find_stream_info: try to preserve the error code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ccba9535
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment