Merge branch 'master' into 0.11

This commit is contained in:
Wim Taymans 2011-11-02 10:40:12 +01:00
commit 22eb0d2300
3 changed files with 9 additions and 9 deletions

View file

@ -56,11 +56,8 @@ struct _GstFlacEnc {
guint padding; guint padding;
gint seekpoints; gint seekpoints;
#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
FLAC__SeekableStreamEncoder *encoder;
#else
FLAC__StreamEncoder *encoder; FLAC__StreamEncoder *encoder;
#endif
FLAC__StreamMetadata **meta; FLAC__StreamMetadata **meta;
GstTagList * tags; GstTagList * tags;

View file

@ -576,9 +576,11 @@ gst_qt_mux_add_mp4_tag (GstQTMux * qtmux, const GstTagList * list,
if (tag2) { if (tag2) {
/* paired unsigned integers */ /* paired unsigned integers */
guint count = 0; guint count = 0;
gboolean got_tag;
if (!(gst_tag_list_get_uint (list, tag, &value) || got_tag = gst_tag_list_get_uint (list, tag, &value);
gst_tag_list_get_uint (list, tag2, &count))) got_tag = gst_tag_list_get_uint (list, tag2, &count) || got_tag;
if (!got_tag)
break; break;
GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT " -> %u/%u", GST_DEBUG_OBJECT (qtmux, "Adding tag %" GST_FOURCC_FORMAT " -> %u/%u",
GST_FOURCC_ARGS (fourcc), value, count); GST_FOURCC_ARGS (fourcc), value, count);

View file

@ -796,15 +796,14 @@ skip_details:
if (!strcmp (mimetype, "video/x-raw-yuv")) { if (!strcmp (mimetype, "video/x-raw-yuv")) {
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_VIDEO_UNCOMPRESSED); context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_VIDEO_UNCOMPRESSED);
gst_structure_get_fourcc (structure, "format", &videocontext->fourcc); 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 */ } else if (!strcmp (mimetype, "video/x-xvid") /* MS/VfW compatibility cases */
||!strcmp (mimetype, "video/x-huffyuv") ||!strcmp (mimetype, "video/x-huffyuv")
|| !strcmp (mimetype, "video/x-divx") || !strcmp (mimetype, "video/x-divx")
|| !strcmp (mimetype, "video/x-dv") || !strcmp (mimetype, "video/x-dv")
|| !strcmp (mimetype, "video/x-h263") || !strcmp (mimetype, "video/x-h263")
|| !strcmp (mimetype, "video/x-msmpeg") || !strcmp (mimetype, "video/x-msmpeg")
|| !strcmp (mimetype, "video/x-wmv")) { || !strcmp (mimetype, "video/x-wmv")
|| !strcmp (mimetype, "image/jpeg")) {
gst_riff_strf_vids *bih; gst_riff_strf_vids *bih;
gint size = sizeof (gst_riff_strf_vids); gint size = sizeof (gst_riff_strf_vids);
guint32 fourcc = 0; guint32 fourcc = 0;
@ -861,6 +860,8 @@ skip_details:
fourcc = GST_MAKE_FOURCC ('W', 'M', 'V', '3'); fourcc = GST_MAKE_FOURCC ('W', 'M', 'V', '3');
} }
} }
} else if (!strcmp (mimetype, "image/jpeg")) {
fourcc = GST_MAKE_FOURCC ('M', 'J', 'P', 'G');
} }
if (!fourcc) if (!fourcc)