mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
ext/theora/theoradec.c: Since the plugin doesn't support anything other than 4:2:0 right now, post an error and fail ...
Original commit message from CVS: * ext/theora/theoradec.c: (theora_handle_type_packet): Since the plugin doesn't support anything other than 4:2:0 right now, post an error and fail if we get something else. Won't matter until libtheora supports the other pixel formats, but hopefully that'll be soon...
This commit is contained in:
parent
7931b94d65
commit
7292973429
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2007-03-13 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* ext/theora/theoradec.c: (theora_handle_type_packet):
|
||||
Since the plugin doesn't support anything other than 4:2:0 right
|
||||
now, post an error and fail if we get something else. Won't matter
|
||||
until libtheora supports the other pixel formats, but hopefully
|
||||
that'll be soon...
|
||||
|
||||
2007-03-10 Sebastien Moutte <sebastien@moutte.net>
|
||||
|
||||
* gst-libs/gst/audio/gstbaseaudiosink.c:(gst_base_audio_sink_render):
|
||||
|
|
|
@ -782,6 +782,12 @@ theora_handle_type_packet (GstTheoraDec * dec, ogg_packet * packet)
|
|||
GST_DEBUG_OBJECT (dec, "frame dimension %dx%d, offset %d:%d",
|
||||
dec->info.frame_width, dec->info.frame_height,
|
||||
dec->info.offset_x, dec->info.offset_y);
|
||||
if (dec->info.pixelformat != OC_PF_420) {
|
||||
GST_ELEMENT_ERROR (GST_ELEMENT (dec), STREAM, DECODE,
|
||||
(NULL), ("pixel formats other than 4:2:0 not yet supported"));
|
||||
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
if (dec->crop) {
|
||||
/* add black borders to make width/height/offsets even. we need this because
|
||||
|
|
Loading…
Reference in a new issue