mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
libav: Bitrate field changed from int to int64_t, fix compiler warnings
Cast it to a gint64 for now though, as otherwise we will fail compilation with ffmpeg 2.8. https://bugzilla.gnome.org/show_bug.cgi?id=757498
This commit is contained in:
parent
6235a04ef3
commit
46fb2e9f11
2 changed files with 6 additions and 3 deletions
|
@ -269,8 +269,9 @@ gst_ffmpegaudenc_set_format (GstAudioEncoder * encoder, GstAudioInfo * info)
|
|||
ffmpegaudenc->context->bit_rate = ffmpegaudenc->bitrate;
|
||||
ffmpegaudenc->context->bit_rate_tolerance = ffmpegaudenc->bitrate;
|
||||
} else {
|
||||
GST_INFO_OBJECT (ffmpegaudenc, "Using avcontext default bitrate %d",
|
||||
ffmpegaudenc->context->bit_rate);
|
||||
GST_INFO_OBJECT (ffmpegaudenc,
|
||||
"Using avcontext default bitrate %" G_GINT64_FORMAT,
|
||||
(gint64) ffmpegaudenc->context->bit_rate);
|
||||
}
|
||||
|
||||
/* RTP payload used for GOB production (for Asterisk) */
|
||||
|
|
|
@ -2357,6 +2357,7 @@ gst_ffmpeg_caps_to_smpfmt (const GstCaps * caps,
|
|||
GstStructure *structure;
|
||||
const gchar *fmt;
|
||||
GstAudioFormat format = GST_AUDIO_FORMAT_UNKNOWN;
|
||||
gint bitrate;
|
||||
|
||||
g_return_if_fail (gst_caps_get_size (caps) == 1);
|
||||
|
||||
|
@ -2365,7 +2366,8 @@ gst_ffmpeg_caps_to_smpfmt (const GstCaps * caps,
|
|||
gst_structure_get_int (structure, "channels", &context->channels);
|
||||
gst_structure_get_int (structure, "rate", &context->sample_rate);
|
||||
gst_structure_get_int (structure, "block_align", &context->block_align);
|
||||
gst_structure_get_int (structure, "bitrate", &context->bit_rate);
|
||||
gst_structure_get_int (structure, "bitrate", &bitrate);
|
||||
context->bit_rate = bitrate;
|
||||
|
||||
if (!raw)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue