[FFmpeg-devel] [Patch] fix ffprobe crash #3603
Clément Bœsch
u at pkh.me
Wed May 14 19:04:17 CEST 2014
On Wed, May 14, 2014 at 05:08:40PM +0200, Stefano Sabatini wrote:
[...]
> > -#define CHECK_END if (ret < 0) goto end
> > -
> > - nb_streams_frames = av_calloc(fmt_ctx->nb_streams, sizeof(*nb_streams_frames));
> > - nb_streams_packets = av_calloc(fmt_ctx->nb_streams, sizeof(*nb_streams_packets));
> > - selected_streams = av_calloc(fmt_ctx->nb_streams, sizeof(*selected_streams));
> > + nb_streams = fmt_ctx->nb_streams;
> > + REALLOCZ_ARRAY_STREAM(nb_streams_frames,0,fmt_ctx->nb_streams);
> > + REALLOCZ_ARRAY_STREAM(nb_streams_packets,0,fmt_ctx->nb_streams);
> > + REALLOCZ_ARRAY_STREAM(selected_streams,0,fmt_ctx->nb_streams);
>
> What's the point of this hunk?
av_calloc() is not compatible with av_realloc()
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140514/e5d8dc77/attachment.asc>
More information about the ffmpeg-devel
mailing list