diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-02 15:02:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-02 15:07:51 +0200 |
commit | c826c5698b9c24c5992a76ab73f7c991bb3073eb (patch) | |
tree | 8920af06d66000ac4975fce67833333559e5b2aa /libavformat | |
parent | ccba9535dc3500854f738ea082286f780a22a56f (diff) | |
download | ffmpeg-c826c5698b9c24c5992a76ab73f7c991bb3073eb.tar.gz |
avformat_find_stream_info: try to preserve the error code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index af2f96710d..962370c7ec 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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++) { |