Commit 3d8f3184 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

avidemux: streaming; adjust sizes to cater for padding in chunks

parent 08c90195
......@@ -4019,7 +4019,7 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
if (gst_avi_demux_peek_chunk (avi, &tag, &size)) {
if ((size > 0) && (size != -1)) {
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;
......@@ -4043,7 +4043,7 @@ gst_avi_demux_stream_data (GstAviDemux * avi)
if (gst_avi_demux_peek_chunk (avi, &tag, &size)) {
if ((size > 0) && (size != -1)) {
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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment