[FFmpeg-devel] AVFMT_FLAG_NOBUFFER not working on ffmpeg2.8 branch
Shi Qiu
qiushics at gmail.com
Tue Feb 14 06:03:56 EET 2017
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;
> }
More information about the ffmpeg-devel
mailing list