From 3d48dd01fd3da5d576cb4dd0d80881ec6e745a22 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 19 Oct 2012 21:46:39 +0200 Subject: [PATCH] avidec: remove unneeded null check Fixes CID29555 Signed-off-by: Michael Niedermayer --- libavformat/avidec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 9285229dcb..0314b4d188 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1144,7 +1144,7 @@ resync: return err; size = err; - if(ast->has_pal && pkt->data && pkt->size<(unsigned)INT_MAX/2){ + if(ast->has_pal && pkt->size<(unsigned)INT_MAX/2){ uint8_t *pal; pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, AVPALETTE_SIZE); if(!pal){