diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-02-24 12:21:40 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-02-25 07:34:00 +0100 |
commit | fc386f2eea8d93ecd4f81e1646c835d1645c56a0 (patch) | |
tree | 28d750d8e183c1640a0960539bceb4f19fd70343 /libavcodec/vorbisdec.c | |
parent | 11dcecfcca0eca1a571792c4fa3c21fb2cfddddc (diff) | |
download | ffmpeg-fc386f2eea8d93ecd4f81e1646c835d1645c56a0.tar.gz |
vorbisdec: cosmetics
Use the commonly used "if (!var)" instead of "if (var == 0)".
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r-- | libavcodec/vorbisdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c index 600083bd59..9200ca0d0a 100644 --- a/libavcodec/vorbisdec.c +++ b/libavcodec/vorbisdec.c @@ -586,7 +586,7 @@ static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) floor_setup->data.t0.order = get_bits(gb, 8); floor_setup->data.t0.rate = get_bits(gb, 16); floor_setup->data.t0.bark_map_size = get_bits(gb, 16); - if (floor_setup->data.t0.bark_map_size == 0) { + if (!floor_setup->data.t0.bark_map_size) { av_log(vc->avccontext, AV_LOG_ERROR, "Floor 0 bark map size is 0.\n"); return AVERROR_INVALIDDATA; @@ -594,7 +594,7 @@ static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) floor_setup->data.t0.amplitude_bits = get_bits(gb, 6); /* zero would result in a div by zero later * * 2^0 - 1 == 0 */ - if (floor_setup->data.t0.amplitude_bits == 0) { + if (!floor_setup->data.t0.amplitude_bits) { av_log(vc->avccontext, AV_LOG_ERROR, "Floor 0 amplitude bits is 0.\n"); return AVERROR_INVALIDDATA; |