diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-20 01:51:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-20 01:51:16 +0100 |
commit | 172865931951d73f1ac60f4b56cdb4da77f37f1d (patch) | |
tree | 0a6a26ebd38080f7f9c6e5c287860a896d6ae3d7 /libavformat/westwood_aud.c | |
parent | 4b45aa517c30091c20b75f1fd12f3607a679b841 (diff) | |
download | ffmpeg-172865931951d73f1ac60f4b56cdb4da77f37f1d.tar.gz |
avformat/westwood_aud: replace != 0 error check by <0
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/westwood_aud.c')
-rw-r--r-- | libavformat/westwood_aud.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/westwood_aud.c b/libavformat/westwood_aud.c index 52868752dc..6d8dbdbd35 100644 --- a/libavformat/westwood_aud.c +++ b/libavformat/westwood_aud.c @@ -151,7 +151,7 @@ static int wsaud_read_packet(AVFormatContext *s, Specifically, this is needed to signal when a packet should be decoding as raw 8-bit pcm or variable-size ADPCM. */ int out_size = AV_RL16(&preamble[2]); - if ((ret = av_new_packet(pkt, chunk_size + 4))) + if ((ret = av_new_packet(pkt, chunk_size + 4)) < 0) return ret; if ((ret = avio_read(pb, &pkt->data[4], chunk_size)) != chunk_size) return ret < 0 ? ret : AVERROR(EIO); |