mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
gst/: Make sure we don't create 0 sized subbufers in riff-read.
Original commit message from CVS: * gst-libs/gst/riff/riff-read.c: (gst_riff_read_strf_vids_with_data), (gst_riff_read_strf_auds_with_data): * gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query), (gst_avi_demux_add_stream), (gst_avi_demux_stream_header): Make sure we don't create 0 sized subbufers in riff-read. Signal the no more pads signal after reading the avi header.
This commit is contained in:
parent
b10414dfb4
commit
e572214cc1
1 changed files with 12 additions and 4 deletions
|
@ -551,8 +551,12 @@ gst_riff_read_strf_vids_with_data (GstRiffRead * riff,
|
|||
strf->size, GST_BUFFER_SIZE (buf));
|
||||
strf->size = GST_BUFFER_SIZE (buf);
|
||||
} else if (strf->size < GST_BUFFER_SIZE (buf)) {
|
||||
*extradata = gst_buffer_create_sub (buf, strf->size + 2,
|
||||
GST_BUFFER_SIZE (buf) - strf->size - 2);
|
||||
gint len;
|
||||
|
||||
len = GST_BUFFER_SIZE (buf) - strf->size - 2;
|
||||
if (len > 0) {
|
||||
*extradata = gst_buffer_create_sub (buf, strf->size + 2, len);
|
||||
}
|
||||
}
|
||||
|
||||
/* debug */
|
||||
|
@ -636,8 +640,12 @@ gst_riff_read_strf_auds_with_data (GstRiffRead * riff,
|
|||
strf->size, GST_BUFFER_SIZE (buf));
|
||||
strf->size = GST_BUFFER_SIZE (buf);
|
||||
} else if (strf->size < GST_BUFFER_SIZE (buf)) {
|
||||
*extradata = gst_buffer_create_sub (buf, strf->size + 2,
|
||||
GST_BUFFER_SIZE (buf) - strf->size - 2);
|
||||
gint len;
|
||||
|
||||
len = GST_BUFFER_SIZE (buf) - strf->size - 2;
|
||||
if (len > 0) {
|
||||
*extradata = gst_buffer_create_sub (buf, strf->size + 2, len);
|
||||
}
|
||||
}
|
||||
|
||||
/* debug */
|
||||
|
|
Loading…
Reference in a new issue