summaryrefslogtreecommitdiffstats
path: root/libavcodec/dvdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-02 16:18:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-02 16:37:38 +0200
commit5307fa00a45b50897af3d5070e936fcaa82ae19e (patch)
tree3403766743d95e19339c4e04eb441201593d03f7 /libavcodec/dvdec.c
parentd266ecff4b6053a60d3bbdd209043facdf469b28 (diff)
downloadffmpeg-streaming-5307fa00a45b50897af3d5070e936fcaa82ae19e.zip
ffmpeg-streaming-5307fa00a45b50897af3d5070e936fcaa82ae19e.tar.gz
avcodec/dvdec: remove redundant null check
Fixes CID700682 again Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvdec.c')
-rw-r--r--libavcodec/dvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c
index fd61320..96534b6 100644
--- a/libavcodec/dvdec.c
+++ b/libavcodec/dvdec.c
@@ -380,7 +380,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
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]);
}
OpenPOWER on IntegriCloud