From ec3d3fc65d06a9f7bc4d32b12b14a7c75e00484d Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Sat, 15 Jun 2019 16:21:56 +0800 Subject: [PATCH] lavf/asfdec: Simplify the check conditions Simplify the check conditions Signed-off-by: Jun Zhao --- libavformat/asfdec_o.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;