diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-06-15 11:21:56 +0300 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-11-04 05:24:58 +0300 |
commit | ec3d3fc65d06a9f7bc4d32b12b14a7c75e00484d (patch) | |
tree | fcf2bb5fcd42c4733432eed573aa3f4aeca8c021 /libavformat | |
parent | 8f7a043609554fd5e6917afeaed5d95bca420859 (diff) |
lavf/asfdec: Simplify the check conditions
Simplify the check conditions
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/asfdec_o.c | 2 |
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; |