[FFmpeg-devel,V1,2/3] lavf/asfdec: Simplify the check conditions

Submitted by Jun Zhao on June 15, 2019, 5:13 p.m.

Details

Message ID 1560618818-14485-2-git-send-email-mypopydev@gmail.com
State New
Headers show

Commit Message

Jun Zhao June 15, 2019, 5:13 p.m.
From: Jun Zhao <barryjzhao@tencent.com>

Simplify the check conditions

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/asfdec_o.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c
index 8e7f044..7891b23 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;