From 3837abb264962f1783cbf21b2aa7bfcdf23dd78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 12 Dec 2012 15:57:19 +0000 Subject: [PATCH] avauddec: Set frame defaults for the audio decoders too --- ext/libav/gstavauddec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libav/gstavauddec.c b/ext/libav/gstavauddec.c index 59c51fd9a3..8834354a8b 100644 --- a/ext/libav/gstavauddec.c +++ b/ext/libav/gstavauddec.c @@ -434,6 +434,7 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec, 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); GST_DEBUG_OBJECT (ffmpegdec,