aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-03 22:03:42 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-03 22:05:00 +0100
commitdeeba777ad0a0db018b1f93af32c5525a3a6a3a8 (patch)
tree170bc2ced18155c0d8fee582118f1d1db5b241a4
parent46a16ca15a68bfd7341dd9783ecf39bbdf80d08e (diff)
parent27b99d929fe3440b4bba8e5d970c2802f274f328 (diff)
downloadffmpeg-deeba777ad0a0db018b1f93af32c5525a3a6a3a8.tar.gz
Merge commit '27b99d929fe3440b4bba8e5d970c2802f274f328'
* commit '27b99d929fe3440b4bba8e5d970c2802f274f328': siff: Return more meaningful error values Conflicts: libavformat/siff.c See: 29c3ebf56e2b54c68c52668937f74a874ecb49ac Merged-by: Michael Niedermayer <michaelni@gmx.at>
-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;
}