Browse Source

avidec: remove unneeded null check

Fixes CID29555
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
3d48dd01fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/avidec.c

+ 1
- 1
libavformat/avidec.c View 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){


Loading…
Cancel
Save