mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
j2kpay: stop scanning when we reached the end
Stop scanning for markers when we reached the end of the data.
This commit is contained in:
parent
d30f3baffa
commit
957eac9579
1 changed files with 5 additions and 0 deletions
|
@ -437,6 +437,11 @@ gst_rtp_j2k_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
||||||
}
|
}
|
||||||
|
|
||||||
pos = end;
|
pos = end;
|
||||||
|
|
||||||
|
/* exit when finished */
|
||||||
|
if (pos == size)
|
||||||
|
break;
|
||||||
|
|
||||||
/* scan next packetization unit and fill in the header */
|
/* scan next packetization unit and fill in the header */
|
||||||
end = find_pu_end (pay, data, size, pos, &state);
|
end = find_pu_end (pay, data, size, pos, &state);
|
||||||
} while (TRUE);
|
} while (TRUE);
|
||||||
|
|
Loading…
Reference in a new issue