mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
avidemux: streaming; adjust sizes to cater for padding in chunks
This commit is contained in:
parent
08c9019566
commit
3d8f31843c
1 changed files with 2 additions and 2 deletions
|
@ -4019,7 +4019,7 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
|
||||||
if (gst_avi_demux_peek_chunk (avi, &tag, &size)) {
|
if (gst_avi_demux_peek_chunk (avi, &tag, &size)) {
|
||||||
if ((size > 0) && (size != -1)) {
|
if ((size > 0) && (size != -1)) {
|
||||||
GST_DEBUG (" skipping %d bytes for now", size);
|
GST_DEBUG (" skipping %d bytes for now", size);
|
||||||
gst_adapter_flush (avi->adapter, 8 + size);
|
gst_adapter_flush (avi->adapter, 8 + GST_ROUND_UP_2 (size));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
@ -4043,7 +4043,7 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
|
||||||
if (gst_avi_demux_peek_chunk (avi, &tag, &size)) {
|
if (gst_avi_demux_peek_chunk (avi, &tag, &size)) {
|
||||||
if ((size > 0) && (size != -1)) {
|
if ((size > 0) && (size != -1)) {
|
||||||
GST_DEBUG (" skipping %d bytes for now", size);
|
GST_DEBUG (" skipping %d bytes for now", size);
|
||||||
gst_adapter_flush (avi->adapter, 8 + size);
|
gst_adapter_flush (avi->adapter, 8 + GST_ROUND_UP_2 (size));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue