mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
34c5d5718f
commit
861ca32178
2 changed files with 32 additions and 4 deletions
20
ChangeLog
20
ChangeLog
|
@ -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>
|
||||
|
||||
* ext/dv/gstdvdec.c:
|
||||
|
|
|
@ -656,6 +656,7 @@ IsVBR
|
|||
GstTagList *taglist;
|
||||
GValue tag_value = { 0 };
|
||||
gboolean have_tags = FALSE;
|
||||
guint8 *name = NULL;
|
||||
|
||||
GST_INFO ("Object is an extended content description.");
|
||||
|
||||
|
@ -669,7 +670,7 @@ IsVBR
|
|||
guint16 name_length;
|
||||
guint16 datatype;
|
||||
guint16 value_length;
|
||||
guint8 *tmpname, *name;
|
||||
guint8 *tmpname;
|
||||
guint8 *tmpvalue, *value;
|
||||
|
||||
/* Descriptor Name Length */
|
||||
|
@ -713,7 +714,6 @@ IsVBR
|
|||
while (tags_label[j] != NULL) {
|
||||
if (!strcmp (name, tags_label[j])) {
|
||||
tag = j;
|
||||
have_tags = TRUE;
|
||||
|
||||
/* 0000 = UTF-16 String */
|
||||
if (datatype == 0) {
|
||||
|
@ -723,12 +723,17 @@ IsVBR
|
|||
NULL);
|
||||
value[out] = 0;
|
||||
|
||||
g_value_init (&tag_value, G_TYPE_STRING);
|
||||
g_value_set_string (&tag_value, value);
|
||||
/* get rid of tags with empty value */
|
||||
if (strlen (value)) {
|
||||
have_tags = TRUE;
|
||||
g_value_init (&tag_value, G_TYPE_STRING);
|
||||
g_value_set_string (&tag_value, value);
|
||||
}
|
||||
}
|
||||
|
||||
/* 0003 = DWORD */
|
||||
if (datatype == 3) {
|
||||
have_tags = TRUE;
|
||||
g_value_init (&tag_value, G_TYPE_INT);
|
||||
g_value_set_int (&tag_value, GUINT32_FROM_LE ((guint32) * value));
|
||||
}
|
||||
|
@ -770,6 +775,9 @@ IsVBR
|
|||
return TRUE;
|
||||
|
||||
fail:
|
||||
if (name) {
|
||||
g_free (name);
|
||||
};
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue