mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
ext/ffmpeg/gstffmpegcodecmap.c: Need to set depth on context for camtasia decoder (fixes #398875).
Original commit message from CVS: Patch by: Martin Szulecki <gnomebugzilla at sukimashita com> * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_caps_with_codecid): Need to set depth on context for camtasia decoder (fixes #398875).
This commit is contained in:
parent
6ff00e8dcb
commit
7dd3df72a1
2 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-01-22 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Martin Szulecki <gnomebugzilla at sukimashita com>
|
||||
|
||||
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
|
||||
(gst_ffmpeg_caps_with_codecid):
|
||||
Need to set depth on context for camtasia decoder (fixes #398875).
|
||||
|
||||
2007-01-11 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
Patch by: Mark Nauwelaerts <manauw@skynet.be>
|
||||
|
|
|
@ -669,6 +669,12 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
|
|||
|
||||
case CODEC_ID_TSCC:
|
||||
caps = gst_ff_vid_caps_new (context, codec_id, "video/x-camtasia", NULL);
|
||||
if (context) {
|
||||
gst_caps_set_simple (caps,
|
||||
"depth", G_TYPE_INT, (gint) context->bits_per_sample, NULL);
|
||||
} else {
|
||||
gst_caps_set_simple (caps, "depth", GST_TYPE_INT_RANGE, 8, 32, NULL);
|
||||
}
|
||||
break;
|
||||
|
||||
case CODEC_ID_PNG:
|
||||
|
@ -1571,11 +1577,16 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id,
|
|||
|
||||
case CODEC_ID_MSRLE:
|
||||
case CODEC_ID_QTRLE:
|
||||
case CODEC_ID_TSCC:
|
||||
{
|
||||
gint depth;
|
||||
|
||||
if (gst_structure_get_int (str, "depth", &depth))
|
||||
if (gst_structure_get_int (str, "depth", &depth)) {
|
||||
context->bits_per_sample = depth;
|
||||
} else {
|
||||
GST_WARNING ("No depth field in caps %" GST_PTR_FORMAT, caps);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue