diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 21:46:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 21:46:39 +0200 |
commit | 3d48dd01fd3da5d576cb4dd0d80881ec6e745a22 (patch) | |
tree | b234fd566d7948692a62734abca2113f6b4baf5c /libavformat | |
parent | aaf78e4d14b4875e4cff30e979421a1087337b9f (diff) | |
download | ffmpeg-3d48dd01fd3da5d576cb4dd0d80881ec6e745a22.tar.gz |
avidec: remove unneeded null check
Fixes CID29555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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){ |