dv: Drop a spurious check
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 12 Nov 2014 18:10:39 +0000 (19:10 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Sat, 15 Nov 2014 11:49:37 +0000 (12:49 +0100)
The buffer is always valid.

Bug-Id: CID 700682

libavcodec/dvdec.c

index a1235d3..bdf3eea 100644 (file)
@@ -383,8 +383,8 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, void *data,
     vsc_pack = buf + 80 * 5 + 48 + 5;
     if (*vsc_pack == dv_video_control) {
         apt    = buf[4] & 0x07;
-        is16_9 = (vsc_pack && ((vsc_pack[2] & 0x07) == 0x02 ||
-                               (!apt && (vsc_pack[2] & 0x07) == 0x07)));
+        is16_9 = (vsc_pack[2] & 0x07) == 0x02 ||
+                 (!apt && (vsc_pack[2] & 0x07) == 0x07);
         ff_set_sar(avctx, s->sys->sar[is16_9]);
     }