mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
avauddec: Set frame defaults for the audio decoders too
This commit is contained in:
parent
7a36bbb873
commit
3837abb264
1 changed files with 1 additions and 0 deletions
|
@ -434,6 +434,7 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec,
|
||||||
|
|
||||||
gst_avpacket_init (&packet, data, size);
|
gst_avpacket_init (&packet, data, size);
|
||||||
memset (&frame, 0, sizeof (frame));
|
memset (&frame, 0, sizeof (frame));
|
||||||
|
avcodec_get_frame_defaults (&frame);
|
||||||
len = avcodec_decode_audio4 (ffmpegdec->context, &frame, &have_data, &packet);
|
len = avcodec_decode_audio4 (ffmpegdec->context, &frame, &have_data, &packet);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (ffmpegdec,
|
GST_DEBUG_OBJECT (ffmpegdec,
|
||||||
|
|
Loading…
Reference in a new issue