summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-12-16 21:34:12 +0100
committerBenjamin Otte <otte@gnome.org>2008-12-16 21:34:12 +0100
commit306097367ab3c53d65a5d3e8eaee50a233144813 (patch)
treeedc96e3c92ec42669e30d5597496b0b84081a8cc
parente5e3f15d026b3774b44fccf5c9b5f2fc2f960275 (diff)
make various errors in the screen decoder not fatal
-rw-r--r--swfdec/swfdec_video_decoder_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swfdec/swfdec_video_decoder_screen.c b/swfdec/swfdec_video_decoder_screen.c
index 42504b5b..08c725ee 100644
--- a/swfdec/swfdec_video_decoder_screen.c
+++ b/swfdec/swfdec_video_decoder_screen.c
@@ -55,7 +55,7 @@ swfdec_video_decoder_screen_decode (SwfdecVideoDecoder *dec, SwfdecBuffer *buffe
h = swfdec_bits_getbits (&bits, 12);
if (dec->width == 0 || dec->height == 0) {
if (w == 0 || h == 0) {
- swfdec_video_decoder_error (dec, "width or height is 0: %ux%u", w, h);
+ SWFDEC_ERROR ("width or height is 0: %ux%u", w, h);
return;
}
/* check for overflow */
@@ -72,7 +72,7 @@ swfdec_video_decoder_screen_decode (SwfdecVideoDecoder *dec, SwfdecBuffer *buffe
dec->height = h;
dec->rowstride[0] = w * 4;
} else if (dec->width != w || dec->height != h) {
- swfdec_video_decoder_error (dec, "width or height differ from original: was %ux%u, is %ux%u",
+ SWFDEC_ERROR ("width or height differ from original: was %ux%u, is %ux%u",
dec->width, dec->height, w, h);
/* FIXME: this is what ffmpeg does, should we be more forgiving? */
return;