diff options
Diffstat (limited to 'ext/xvid')
-rw-r--r-- | ext/xvid/gstxviddec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/xvid/gstxviddec.c b/ext/xvid/gstxviddec.c index e108afc6..94da4e9b 100644 --- a/ext/xvid/gstxviddec.c +++ b/ext/xvid/gstxviddec.c @@ -197,6 +197,7 @@ gst_xviddec_chain (GstPad * pad, GstBuffer * buf) GstBuffer *outbuf = NULL; xvid_dec_frame_t xframe; GstFlowReturn ret = GST_FLOW_OK; + guint bufsize; int error = 0; if (xviddec->handle == NULL) { @@ -204,7 +205,7 @@ gst_xviddec_chain (GstPad * pad, GstBuffer * buf) goto not_negotiated; } - guint bufsize = (xviddec->width * xviddec->height * xviddec->bpp / 8); + bufsize = (xviddec->width * xviddec->height * xviddec->bpp / 8); outbuf = gst_buffer_new_and_alloc (bufsize); |