aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asfdec_o.c
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-06-15 16:21:56 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-11-04 10:24:58 +0800
commitec3d3fc65d06a9f7bc4d32b12b14a7c75e00484d (patch)
treefcf2bb5fcd42c4733432eed573aa3f4aeca8c021 /libavformat/asfdec_o.c
parent8f7a043609554fd5e6917afeaed5d95bca420859 (diff)
downloadffmpeg-ec3d3fc65d06a9f7bc4d32b12b14a7c75e00484d.tar.gz
lavf/asfdec: Simplify the check conditions
Simplify the check conditions Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat/asfdec_o.c')
-rw-r--r--libavformat/asfdec_o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c
index 8e7f044ce9..7891b23445 100644
--- a/libavformat/asfdec_o.c
+++ b/libavformat/asfdec_o.c
@@ -1165,7 +1165,7 @@ static int asf_read_replicated_data(AVFormatContext *s, ASFPacket *asf_pkt)
} else
avio_skip(pb, 4); // reading of media object size is already done
asf_pkt->dts = avio_rl32(pb); // read presentation time
- if (asf->rep_data_len && (asf->rep_data_len >= 8))
+ if (asf->rep_data_len >= 8)
avio_skip(pb, asf->rep_data_len - 8); // skip replicated data
return 0;