Commit 3d48dd01 authored by Michael Niedermayer's avatar Michael Niedermayer

avidec: remove unneeded null check

Fixes CID29555
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent aaf78e4d
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment