[FFmpeg-devel] [RFC/PATCH]Avoid huge allocations from asf demuxer

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Mar 2 18:42:37 CET 2013


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > +++ b/libavformat/asfdec.c
> > @@ -1011,6 +1011,7 @@ static int asf_read_frame_header
> >      asf->packet_obj_size = avio_rl32(pb);
> >      if (asf->packet_obj_size >= (1 << 24) || asf->packet_obj_size <= 0) {
> >          av_log(s, AV_LOG_ERROR, "packet_obj_size invalid\n");
> > +        asf->packet_obj_size = 0;
> 
> LGTM

Patch applied.

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list