We dereferenced the pointer two lines above, no point in
checking for NULL afterwards.
In addition it cannot be NULL the way it was initialized
just one line further above.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
... | ... |
@@ -1109,7 +1109,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, |
1109 | 1109 |
vsc_pack = buf + 80*5 + 48 + 5; |
1110 | 1110 |
if ( *vsc_pack == dv_video_control ) { |
1111 | 1111 |
apt = buf[4] & 0x07; |
1112 |
- is16_9 = (vsc_pack && ((vsc_pack[2] & 0x07) == 0x02 || (!apt && (vsc_pack[2] & 0x07) == 0x07))); |
|
1112 |
+ is16_9 = (vsc_pack[2] & 0x07) == 0x02 || (!apt && (vsc_pack[2] & 0x07) == 0x07); |
|
1113 | 1113 |
avctx->sample_aspect_ratio = s->sys->sar[is16_9]; |
1114 | 1114 |
} |
1115 | 1115 |
|