mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
jpeg: handle comment segments.
Fix decode_buffer() function to gracefully skip comment (COM) segments. This fixes decoding of streams generated by certain cameras, e.g. like the Logitech Pro C920. https://bugzilla.gnome.org/show_bug.cgi?id=708208 Signed-off-by: Junfeng Xu <jun.feng.xu@intel.com>
This commit is contained in:
parent
77298beb15
commit
a4aac6b89e
1 changed files with 3 additions and 0 deletions
|
@ -581,6 +581,9 @@ decode_buffer(GstVaapiDecoderJpeg *decoder, const guchar *buf, guint buf_size)
|
|||
case GST_JPEG_MARKER_DRI:
|
||||
status = decode_restart_interval(decoder, buf + seg.offset, seg.size);
|
||||
break;
|
||||
case GST_JPEG_MARKER_COM:
|
||||
status = GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||
break;
|
||||
case GST_JPEG_MARKER_DAC:
|
||||
GST_ERROR("unsupported arithmetic coding mode");
|
||||
status = GST_VAAPI_DECODER_STATUS_ERROR_UNSUPPORTED_PROFILE;
|
||||
|
|
Loading…
Reference in a new issue