+2004-10-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * gst-libs/gst/riff/riff-media.c:
+ (gst_riff_create_video_caps_with_data),
+ (gst_riff_create_audio_caps_with_data):
+ Add codec_data handling (like asfdemux used to do).
+ * gst/asfdemux/gstasf.c: (plugin_init):
+ * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
+ (gst_asf_demux_add_audio_stream), (gst_asf_demux_add_video_stream):
+ Use riff-media for caps creation instead of our own (mostly
+ broken) copy of its functions.
+
2004-10-01 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_try_capture):
break;
case GST_MAKE_FOURCC ('M', 'P', 'G', '4'):
+ case GST_MAKE_FOURCC ('M', 'P', '4', 'S'):
caps = gst_caps_new_simple ("video/x-msmpeg",
"msmpegversion", G_TYPE_INT, 41, NULL);
if (codec_name)
"palette_data", &value);
g_value_unset (&value);
gst_buffer_unref (copy);
+ strf_data = NULL; /* used */
}
if (strf) {
gst_caps_set_simple (caps,
"height", GST_TYPE_INT_RANGE, 16, 4096, NULL);
}
+ /* extradata */
+ if (strf_data || strd_data) {
+ gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER,
+ strf_data ? strf_data : strd_data, NULL);
+ }
+
return caps;
}
break;
case GST_RIFF_WAVE_FORMAT_WMAV1:
case GST_RIFF_WAVE_FORMAT_WMAV2:
+ case GST_RIFF_WAVE_FORMAT_WMAV3:
{
- gint version = codec_id == GST_RIFF_WAVE_FORMAT_WMAV1 ? 1 : 2;
+ gint version = (codec_id - GST_RIFF_WAVE_FORMAT_WMAV1) + 1;
block_align = TRUE;
gst_caps_set_simple (caps,
"bitrate", GST_TYPE_INT_RANGE, 0, G_MAXINT, NULL);
}
- if (strf_data) {
- gst_caps_set_simple (caps,
- "codec_data", GST_TYPE_BUFFER, strf_data, NULL);
- }
break;
}
default:
}
}
+ /* extradata */
+ if (strf_data || strd_data) {
+ gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER,
+ strf_data ? strf_data : strd_data, NULL);
+ }
+
return caps;
}