Commit 30076950 authored by michael's avatar michael

10l (use of deallocated memory)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3936 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 784958b7
......@@ -634,10 +634,16 @@ static int flac_decode_frame(AVCodecContext *avctx,
if(metadata_size){
switch(metadata_type)
{
case METADATA_TYPE_STREAMINFO:
case METADATA_TYPE_STREAMINFO:{
int bits_count= get_bits_count(&s->gb);
metadata_streaminfo(s);
buf= &s->bitstream[s->bitstream_index];
init_get_bits(&s->gb, buf, buf_size*8);
skip_bits(&s->gb, bits_count);
dump_headers(s);
break;
break;}
default:
for(i=0; i<metadata_size; i++)
skip_bits(&s->gb, 8);
......
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