Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-04 00:03:42 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-02-04 00:05:00 +0300
commitdeeba777ad0a0db018b1f93af32c5525a3a6a3a8 (patch)
tree170bc2ced18155c0d8fee582118f1d1db5b241a4 /libavformat/siff.c
parent46a16ca15a68bfd7341dd9783ecf39bbdf80d08e (diff)
parent27b99d929fe3440b4bba8e5d970c2802f274f328 (diff)
Merge commit '27b99d929fe3440b4bba8e5d970c2802f274f328'
* commit '27b99d929fe3440b4bba8e5d970c2802f274f328': siff: Return more meaningful error values Conflicts: libavformat/siff.c See: 29c3ebf56e2b54c68c52668937f74a874ecb49ac Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/siff.c')
-rw-r--r--libavformat/siff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/siff.c b/libavformat/siff.c
index 3b54e90777..8901e1ee48 100644
--- a/libavformat/siff.c
+++ b/libavformat/siff.c
@@ -137,8 +137,8 @@ static int siff_parse_vbv1(AVFormatContext *s, SIFFContext *c, AVIOContext *pb)
c->has_video = 1;
c->has_audio = !!c->rate;
c->curstrm = -1;
- if (c->has_audio && create_audio_stream(s, c) < 0)
- return AVERROR(ENOMEM);
+ if (c->has_audio)
+ return create_audio_stream(s, c);
return 0;
}