X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Ftags.c;h=c2ed4d390e1d083ecca3776a2ac1e5dcbb9da4cb;hb=2828d9c7bdb68ced20dabb45ffb50ee178cd0015;hp=1550b18846a25c87b91add3efe4df628c5c93fa1;hpb=20b361a8e7ceffe15bee45dc67ca79f729fc7813;p=swftools.git diff --git a/lib/python/tags.c b/lib/python/tags.c index 1550b18..c2ed4d3 100644 --- a/lib/python/tags.c +++ b/lib/python/tags.c @@ -817,10 +817,10 @@ 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->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->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);