5 Jan
2010
5 Jan
'10
8:33 p.m.
2010/1/5 Michael Niedermayer <michaelni at gmx.at> [...]
+static int yop_read_packet(AVFormatContext *s, AVPacket *pkt) +{ + YopDecContext *yop = s->priv_data; + ByteIOContext *pb = s->pb; + + int ret; + int palette_size = 4 + yop->num_pal_colors * 3;
+ int actual_video_data_size = yop->frame_size - + yop->audio_block_length - palette_size;
this still can end up negative, there still are missing checks in the header parsing
Fixed. [...] Naufal