mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavf/asfdec: Simplify the check conditions
Simplify the check conditions Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
8f7a043609
commit
ec3d3fc65d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user