Commit 58fbcf01 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

jpegdec: optimize buffer handling when parsing

Use an adapter to collect incoming data, and use adapter API to scan and peek.

Fixes #583047.
parent a88acc84
This diff is collapsed.
......@@ -25,6 +25,7 @@
#include <setjmp.h>
#include <gst/gst.h>
#include <gst/video/video.h>
#include <gst/base/gstadapter.h>
/* this is a hack hack hack to get around jpeglib header bugs... */
#ifdef HAVE_STDLIB_H
......@@ -69,7 +70,7 @@ struct _GstJpegDec {
GstPad *sinkpad;
GstPad *srcpad;
GstBuffer *tempbuf;
GstAdapter *adapter;
/* TRUE if each input buffer contains a whole jpeg image */
gboolean packetized;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment