avidemux: streaming; adjust sizes to cater for padding in chunks
This commit is contained in:
parent
08c9019566
commit
3d8f31843c
@ -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…
x
Reference in New Issue
Block a user