libavformat/utils.c,line 3308:

if (ic->flags & AVFMT_FLAG_NOBUFFER)
>     free_packet_buffer(&ic->internal->packet_buffer,
>                        &ic->internal->packet_buffer_end);
> {
>     pkt = add_to_pktbuf(&ic->internal->packet_buffer, &pkt1,
>                         &ic->internal->packet_buffer_end);
>     if (!pkt) {
>         ret = AVERROR(ENOMEM);
>         goto find_stream_info_err;
>     }
>     if ((ret = av_dup_packet(pkt)) < 0)
>         goto find_stream_info_err;
> }

should be:

> if (ic->flags & AVFMT_FLAG_NOBUFFER)
> {
>     free_packet_buffer(&ic->internal->packet_buffer,
>                        &ic->internal->packet_buffer_end);
> }
> else
> {
>     pkt = add_to_pktbuf(&ic->internal->packet_buffer, &pkt1,
>                         &ic->internal->packet_buffer_end);
>     if (!pkt) {
>         ret = AVERROR(ENOMEM);
>         goto find_stream_info_err;
>     }
>     if ((ret = av_dup_packet(pkt)) < 0)
>         goto find_stream_info_err;
> }
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to