mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
jpeg: fix calculation of offset to next marker segment.
Fix calculation of the offset to the next marker segment since the correction of the codecparser part to match the API specification. i.e. the GstJpegMarkerSegment.size field represents the size in bytes of the segment minus any marker prefix. https://bugzilla.gnome.org/show_bug.cgi?id=707447 Signed-off-by: Junfeng Xu <jun.feng.xu@intel.com>
This commit is contained in:
parent
a1d91e038c
commit
9c29bbde58
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ decode_buffer(GstVaapiDecoderJpeg *decoder, const guchar *buf, guint buf_size)
|
|||
GST_DEBUG("buffer to short for parsing");
|
||||
return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
|
||||
}
|
||||
ofs += seg.size;
|
||||
ofs = seg.offset + seg.size;
|
||||
|
||||
/* Decode scan, if complete */
|
||||
if (seg.marker == GST_JPEG_MARKER_EOI && scan_seg.header_size > 0) {
|
||||
|
|
Loading…
Reference in a new issue