mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
decoder: mpeg4: remove an spurious comparison
The member size in GstMpeg4Packet is gsize which is unsigned, which cannot be less than zero. Hence this pre-condition test is a no-op. This patch removes that code. https://bugzilla.gnome.org/show_bug.cgi?id=747312
This commit is contained in:
parent
7c71f057b4
commit
a6518f6888
1 changed files with 0 additions and 3 deletions
|
@ -818,9 +818,6 @@ decode_packet(GstVaapiDecoderMpeg4 *decoder, GstMpeg4Packet packet)
|
|||
GstMpeg4Packet *tos = &packet;
|
||||
GstVaapiDecoderStatus status;
|
||||
|
||||
if (tos->size < 0)
|
||||
return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
|
||||
|
||||
// packet.size is the size from current marker to the next.
|
||||
if (tos->type == GST_MPEG4_VISUAL_OBJ_SEQ_START) {
|
||||
status = decode_sequence(decoder, packet.data + packet.offset, packet.size);
|
||||
|
|
Loading…
Reference in a new issue