Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 374790 Details for
Bug 507472
media-plugins/gst-plugins-libav-1.2.3: patches to build with libav10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
avaud.patch
avaud.patch (text/plain), 1.47 KB, created by
aaron m
on 2014-04-12 06:15:48 UTC
(
hide
)
Description:
avaud.patch
Filename:
MIME Type:
Creator:
aaron m
Created:
2014-04-12 06:15:48 UTC
Size:
1.47 KB
patch
obsolete
>From 8fc3da62c17a022df40938456ab268e0be19b683 Mon Sep 17 00:00:00 2001 >From: Sebastian Dröge <sebastian@centricular.com> >Date: Fri, 03 Jan 2014 15:26:10 +0000 >Subject: avauddec: Stop using AVCODEC_MAX_AUDIO_FRAME_SIZE > >And properly use the have_data variable. It's a boolean. >--- >diff --git a/ext/libav/gstavauddec.c b/ext/libav/gstavauddec.c >index f195ca0..e074f5d 100644 >--- a/ext/libav/gstavauddec.c >+++ b/ext/libav/gstavauddec.c >@@ -461,7 +461,7 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec, > GstBuffer ** outbuf, GstFlowReturn * ret) > { > gint len = -1; >- gint have_data = AVCODEC_MAX_AUDIO_FRAME_SIZE; >+ gint have_data = 0; > AVPacket packet; > AVFrame frame; > >@@ -475,7 +475,7 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec, > GST_DEBUG_OBJECT (ffmpegdec, > "Decode audio: len=%d, have_data=%d", len, have_data); > >- if (len >= 0 && have_data > 0) { >+ if (len >= 0 && have_data) { > BufferInfo *buffer_info = frame.opaque; > gint nsamples, channels, byte_per_sample; > gsize output_size; >@@ -569,7 +569,8 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec, > gst_buffer_fill (*outbuf, 0, frame.data[0], output_size); > } > >- GST_DEBUG_OBJECT (ffmpegdec, "Buffer created. Size: %d", have_data); >+ GST_DEBUG_OBJECT (ffmpegdec, "Buffer created. Size: %" G_GSIZE_FORMAT, >+ output_size); > > /* Reorder channels to the GStreamer channel order */ > if (ffmpegdec->needs_reorder) { >-- >cgit v0.9.0.2-2-gbebe
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 507472
:
374782
|
374784
|
374786
|
374788
| 374790 |
374792
|
374794