From: kramm Date: Mon, 1 Nov 2004 10:33:57 +0000 (+0000) Subject: allow some other image sizes in movie->addFrame(). X-Git-Tag: release-0-6-3~230 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=50c757db52590bc2e187d2728271346b34677217 allow some other image sizes in movie->addFrame(). --- diff --git a/lib/python/tags.c b/lib/python/tags.c index 1550b18..6da2f73 100644 --- a/lib/python/tags.c +++ b/lib/python/tags.c @@ -817,10 +817,12 @@ static PyObject* videostream_addFrame(PyObject*self, PyObject*args, PyObject*kwa static char *kwlist[] = {"image", "quant", "type", NULL}; if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|is", kwlist, &image, &quant, &type)) return NULL; - if(fi->stream->width != image_getWidth(image)) { + if(fi->stream->width != image_getWidth(image) && + fi->stream->owidth != image_getWidth(image)) { PyErr_SetString(PyExc_Exception, setError("bad image width %d!=%d", image_getWidth(image), fi->stream->width));return 0; } - if(fi->stream->height != image_getHeight(image)) { + if(fi->stream->height != image_getHeight(image) && + fi->stream->oheight != image_getHeight(image)) { PyErr_SetString(PyExc_Exception, setError("bad image width %d!=%d", image_getHeight(image), fi->stream->height));return 0; } PyObject*tag = tag_new(&videoframe_tag);