|
|
@@ -2783,8 +2783,10 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) |
|
|
} else { |
|
|
} else { |
|
|
pkt = add_to_pktbuf(&ic->packet_buffer, &pkt1, |
|
|
pkt = add_to_pktbuf(&ic->packet_buffer, &pkt1, |
|
|
&ic->packet_buffer_end); |
|
|
&ic->packet_buffer_end); |
|
|
if (!pkt) |
|
|
|
|
|
|
|
|
if (!pkt) { |
|
|
|
|
|
ret = AVERROR(ENOMEM); |
|
|
goto find_stream_info_err; |
|
|
goto find_stream_info_err; |
|
|
|
|
|
} |
|
|
if ((ret = av_dup_packet(pkt)) < 0) |
|
|
if ((ret = av_dup_packet(pkt)) < 0) |
|
|
goto find_stream_info_err; |
|
|
goto find_stream_info_err; |
|
|
} |
|
|
} |
|
|
|