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:
Michael Smith 2007-03-12 23:29:07 +00:00
parent 7931b94d65
commit 7292973429
2 changed files with 14 additions and 0 deletions

View file

@ -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):

View file

@ -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