ext/dv/gstdvdec.c: remove unneeded comment from dvdec (related to DV 4CC codes in AVI files) moved them in gstreamer/...

Original commit message from CVS:
* ext/dv/gstdvdec.c:
remove unneeded comment from dvdec
(related to DV 4CC codes in AVI files)
moved them in gstreamer/docs/random/mimetypes
* gst/asfdemux/gstasfdemux.c:
(gst_asf_demux_process_ext_content_desc):
don't send text tags if they are empty
fix mem leak on error path
* gst/ffmpegcolorspace/avcodec.h:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt),
(gst_ffmpegcsp_avpicture_fill):
* gst/ffmpegcolorspace/imgconvert.c: (img_get_alpha_info):
* gst/ffmpegcolorspace/imgconvert_template.h:
adds BGR32 and BGRA32 to ffmpegcolorspace
(still bad colors, fixing it on next commit)
helps with dvdec outputing BGR32
This commit is contained in:
Stéphane Loeuillet 2005-01-08 12:25:26 +00:00
parent 34c5d5718f
commit 861ca32178
2 changed files with 32 additions and 4 deletions

View File

@ -1,3 +1,23 @@
2005-01-08 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
* ext/dv/gstdvdec.c:
remove unneeded comment from dvdec
(related to DV 4CC codes in AVI files)
moved them in gstreamer/docs/random/mimetypes
* gst/asfdemux/gstasfdemux.c:
(gst_asf_demux_process_ext_content_desc):
don't send text tags if they are empty
fix mem leak on error path
* gst/ffmpegcolorspace/avcodec.h:
* gst/ffmpegcolorspace/gstffmpegcodecmap.c:
(gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_caps_to_pixfmt),
(gst_ffmpegcsp_avpicture_fill):
* gst/ffmpegcolorspace/imgconvert.c: (img_get_alpha_info):
* gst/ffmpegcolorspace/imgconvert_template.h:
adds BGR32 and BGRA32 to ffmpegcolorspace
(still bad colors, fixing it on next commit)
helps with dvdec outputing BGR32
2005-01-08 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr> 2005-01-08 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
* ext/dv/gstdvdec.c: * ext/dv/gstdvdec.c:

View File

@ -656,6 +656,7 @@ IsVBR
GstTagList *taglist; GstTagList *taglist;
GValue tag_value = { 0 }; GValue tag_value = { 0 };
gboolean have_tags = FALSE; gboolean have_tags = FALSE;
guint8 *name = NULL;
GST_INFO ("Object is an extended content description."); GST_INFO ("Object is an extended content description.");
@ -669,7 +670,7 @@ IsVBR
guint16 name_length; guint16 name_length;
guint16 datatype; guint16 datatype;
guint16 value_length; guint16 value_length;
guint8 *tmpname, *name; guint8 *tmpname;
guint8 *tmpvalue, *value; guint8 *tmpvalue, *value;
/* Descriptor Name Length */ /* Descriptor Name Length */
@ -713,7 +714,6 @@ IsVBR
while (tags_label[j] != NULL) { while (tags_label[j] != NULL) {
if (!strcmp (name, tags_label[j])) { if (!strcmp (name, tags_label[j])) {
tag = j; tag = j;
have_tags = TRUE;
/* 0000 = UTF-16 String */ /* 0000 = UTF-16 String */
if (datatype == 0) { if (datatype == 0) {
@ -723,12 +723,17 @@ IsVBR
NULL); NULL);
value[out] = 0; value[out] = 0;
g_value_init (&tag_value, G_TYPE_STRING); /* get rid of tags with empty value */
g_value_set_string (&tag_value, value); if (strlen (value)) {
have_tags = TRUE;
g_value_init (&tag_value, G_TYPE_STRING);
g_value_set_string (&tag_value, value);
}
} }
/* 0003 = DWORD */ /* 0003 = DWORD */
if (datatype == 3) { if (datatype == 3) {
have_tags = TRUE;
g_value_init (&tag_value, G_TYPE_INT); g_value_init (&tag_value, G_TYPE_INT);
g_value_set_int (&tag_value, GUINT32_FROM_LE ((guint32) * value)); g_value_set_int (&tag_value, GUINT32_FROM_LE ((guint32) * value));
} }
@ -770,6 +775,9 @@ IsVBR
return TRUE; return TRUE;
fail: fail:
if (name) {
g_free (name);
};
return FALSE; return FALSE;
} }