avidec: remove unneeded null check
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 19:46:39 +0000 (21:46 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 19 Oct 2012 19:46:39 +0000 (21:46 +0200)
Fixes CID29555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avidec.c

index 9285229..0314b4d 100644 (file)
@@ -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){