Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 416902 Details for
Bug 565668
media-plugins/gst-plugins-libav-1.6 is broken with libav
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libav.patch
libav.patch (text/plain), 2.36 KB, created by
Siuchung Cheung (Clement)
on 2015-11-14 05:55:26 UTC
(
hide
)
Description:
libav.patch
Filename:
MIME Type:
Creator:
Siuchung Cheung (Clement)
Created:
2015-11-14 05:55:26 UTC
Size:
2.36 KB
patch
obsolete
>diff --git a/ext/libav/gstavauddec.c b/ext/libav/gstavauddec.c >index 360d168..baca8fc 100644 >--- a/ext/libav/gstavauddec.c >+++ b/ext/libav/gstavauddec.c >@@ -351,15 +351,14 @@ static gboolean > settings_changed (GstFFMpegAudDec * ffmpegdec, AVFrame * frame) > { > GstAudioFormat format; >- gint channels = >- av_get_channel_layout_nb_channels (av_frame_get_channel_layout (frame)); >+ gint channels = av_get_channel_layout_nb_channels (frame->channel_layout); > > format = gst_ffmpeg_smpfmt_to_audioformat (frame->format); > if (format == GST_AUDIO_FORMAT_UNKNOWN) > return TRUE; > > return !(ffmpegdec->info.rate == >- av_frame_get_sample_rate (frame) && >+ frame->sample_rate && > ffmpegdec->info.channels == channels && > ffmpegdec->info.finfo->format == format); > } >@@ -378,10 +377,7 @@ gst_ffmpegauddec_negotiate (GstFFMpegAudDec * ffmpegdec, > format = gst_ffmpeg_smpfmt_to_audioformat (frame->format); > if (format == GST_AUDIO_FORMAT_UNKNOWN) > goto no_caps; >- channels = >- av_get_channel_layout_nb_channels (av_frame_get_channel_layout (frame)); >+ channels = av_get_channel_layout_nb_channels (frame->channel_layout); > if (channels == 0) >- channels = av_frame_get_channels (frame); >- if (channels == 0) > goto no_caps; > >@@ -389,11 +387,9 @@ gst_ffmpegauddec_negotiate (GstFFMpegAudDec * ffmpegdec, > GST_DEBUG_OBJECT (ffmpegdec, > "Renegotiating audio from %dHz@%dchannels (%d) to %dHz@%dchannels (%d)", > ffmpegdec->info.rate, ffmpegdec->info.channels, >- ffmpegdec->info.finfo->format, av_frame_get_sample_rate (frame), channels, >- format); >+ ffmpegdec->info.finfo->format, frame->sample_rate, channels, format); > >- gst_ffmpeg_channel_layout_to_gst (av_frame_get_channel_layout (frame), >- channels, pos); >+ gst_ffmpeg_channel_layout_to_gst (frame->channel_layout, channels, pos); > memcpy (ffmpegdec->ffmpeg_layout, pos, > sizeof (GstAudioChannelPosition) * channels); > >@@ -402,7 +398,7 @@ gst_ffmpegauddec_negotiate (GstFFMpegAudDec * ffmpegdec, > ffmpegdec->needs_reorder = > memcmp (pos, ffmpegdec->ffmpeg_layout, sizeof (pos[0]) * channels) != 0; > gst_audio_info_set_format (&ffmpegdec->info, format, >- av_frame_get_sample_rate (frame), channels, pos); >+ frame->sample_rate, channels, pos); > > if (!gst_audio_decoder_set_output_format (GST_AUDIO_DECODER (ffmpegdec), > &ffmpegdec->info))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 565668
: 416902