mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avidec: remove unneeded null check
Fixes CID29555 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
aaf78e4d14
commit
3d48dd01fd
@ -1144,7 +1144,7 @@ resync:
|
|||||||
return err;
|
return err;
|
||||||
size = 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;
|
uint8_t *pal;
|
||||||
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, AVPALETTE_SIZE);
|
pal = av_packet_new_side_data(pkt, AV_PKT_DATA_PALETTE, AVPALETTE_SIZE);
|
||||||
if(!pal){
|
if(!pal){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user