[FFmpeg-trac] #4749(avcodec:new): firefox crashes in ffmpeg code (2.7.2 and git versions)
FFmpeg
trac at avcodec.org
Mon Aug 3 19:08:53 CEST 2015
#4749: firefox crashes in ffmpeg code (2.7.2 and git versions)
------------------------------------+-----------------------------------
Reporter: zazdxscf | Owner:
Type: defect | Status: new
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: crash aac | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by michael):
Replying to [comment:6 zazdxscf]:
> #10 0x00007f77054d806d in gst_ffmpegauddec_audio_frame
(ffmpegdec=ffmpegdec at entry=0x7f770c5fc2a0,
{{{
> static gint
> gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec,
> AVCodec * in_plugin, guint8 * data, guint size, gint * have_data,
> GstBuffer ** outbuf, GstFlowReturn * ret)
> {
> gint len = -1;
> AVPacket packet;
> AVFrame frame;
>
> GST_DEBUG_OBJECT (ffmpegdec, "size: %d", size);
>
> gst_avpacket_init (&packet, data, size);
> memset (&frame, 0, sizeof (frame));
> avcodec_get_frame_defaults (&frame);
> len = avcodec_decode_audio4 (ffmpegdec->context, &frame, have_data,
&packet); // <--- this be line 475
>
> GST_DEBUG_OBJECT (ffmpegdec,
> "Decode audio: len=%d, have_data=%d", len, *have_data);
> ...
}}}
[...]
> If you have any suggestions on what I should try next, I'd be more than
happy to. Even if it's about code in gst-plugins-libav ... or anything
really. (I don't know much btw, but willing to try)
The fix for this is likely this commit in gstreamer:
http://cgit.freedesktop.org/gstreamer/gst-
libav/commit/?id=30a4a28793f2e0ff08aaea368b7c14317ac2ca21
There seem to be other related fixes in gstreamer too
i dont think theres any sense in debuging this further before you ensured
that your gstreamer contains these fixes
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4749#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list