mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
mpegtsparse: actually work when we have small buffers coming in
available_fast is not what we want and it will never get to discover packet size if 188 byte buffers are being picked up.
This commit is contained in:
parent
b1240c850a
commit
c7b195740e
1 changed files with 1 additions and 2 deletions
|
@ -2074,8 +2074,7 @@ mpegts_try_discover_packet_size (MpegTSPacketizer * packetizer)
|
|||
};
|
||||
/* wait for 3 sync bytes */
|
||||
/* so first return if there is not enough data for 4 * max packetsize */
|
||||
if (gst_adapter_available_fast (packetizer->adapter) <
|
||||
MPEGTS_MAX_PACKETSIZE * 4)
|
||||
if (gst_adapter_available (packetizer->adapter) < MPEGTS_MAX_PACKETSIZE * 4)
|
||||
return;
|
||||
/* check for sync bytes */
|
||||
dest = g_malloc (MPEGTS_MAX_PACKETSIZE * 4);
|
||||
|
|
Loading…
Reference in a new issue