[FFmpeg-cvslog] lavf/asfdec: Simplify the check conditions
Jun Zhao
git at videolan.org
Mon Nov 4 04:27:36 EET 2019
ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Sat Jun 15 16:21:56 2019 +0800| [ec3d3fc65d06a9f7bc4d32b12b14a7c75e00484d] | committer: Jun Zhao
lavf/asfdec: Simplify the check conditions
Simplify the check conditions
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec3d3fc65d06a9f7bc4d32b12b14a7c75e00484d
---
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;
More information about the ffmpeg-cvslog
mailing list