mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
Merge branch 'master' into 0.11
This commit is contained in:
commit
22eb0d2300
3 changed files with 9 additions and 9 deletions
|
@ -56,11 +56,8 @@ struct _GstFlacEnc {
|
|||
guint padding;
|
||||
gint seekpoints;
|
||||
|
||||
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
|
||||
FLAC__SeekableStreamEncoder *encoder;
|
||||
#else
|
||||
FLAC__StreamEncoder *encoder;
|
||||
#endif
|
||||
|
||||
FLAC__StreamMetadata **meta;
|
||||
|
||||
GstTagList * tags;
|
||||
|
|
|
@ -576,9 +576,11 @@ gst_qt_mux_add_mp4_tag (GstQTMux * qtmux, const GstTagList * list,
|
|||
if (tag2) {
|
||||
/* paired unsigned integers */
|
||||
guint count = 0;
|
||||
gboolean got_tag;
|
||||
|
||||
if (!(gst_tag_list_get_uint (list, tag, &value) ||
|
||||
gst_tag_list_get_uint (list, tag2, &count)))
|
||||
got_tag = gst_tag_list_get_uint (list, tag, &value);
|
||||
got_tag = gst_tag_list_get_uint (list, tag2, &count) || got_tag;
|
||||
if (!got_tag)
|
||||
break;
|
||||
GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT " -> %u/%u",
|
||||
GST_FOURCC_ARGS (fourcc), value, count);
|
||||
|
|
|
@ -796,15 +796,14 @@ skip_details:
|
|||
if (!strcmp (mimetype, "video/x-raw-yuv")) {
|
||||
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_VIDEO_UNCOMPRESSED);
|
||||
gst_structure_get_fourcc (structure, "format", &videocontext->fourcc);
|
||||
} else if (!strcmp (mimetype, "image/jpeg")) {
|
||||
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_VIDEO_MJPEG);
|
||||
} else if (!strcmp (mimetype, "video/x-xvid") /* MS/VfW compatibility cases */
|
||||
||!strcmp (mimetype, "video/x-huffyuv")
|
||||
|| !strcmp (mimetype, "video/x-divx")
|
||||
|| !strcmp (mimetype, "video/x-dv")
|
||||
|| !strcmp (mimetype, "video/x-h263")
|
||||
|| !strcmp (mimetype, "video/x-msmpeg")
|
||||
|| !strcmp (mimetype, "video/x-wmv")) {
|
||||
|| !strcmp (mimetype, "video/x-wmv")
|
||||
|| !strcmp (mimetype, "image/jpeg")) {
|
||||
gst_riff_strf_vids *bih;
|
||||
gint size = sizeof (gst_riff_strf_vids);
|
||||
guint32 fourcc = 0;
|
||||
|
@ -861,6 +860,8 @@ skip_details:
|
|||
fourcc = GST_MAKE_FOURCC ('W', 'M', 'V', '3');
|
||||
}
|
||||
}
|
||||
} else if (!strcmp (mimetype, "image/jpeg")) {
|
||||
fourcc = GST_MAKE_FOURCC ('M', 'J', 'P', 'G');
|
||||
}
|
||||
|
||||
if (!fourcc)
|
||||
|
|
Loading…
Reference in a new issue