mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-27 08:26:39 +00:00
audiodecoder: assert some more that subclass parsed frame has proper len
This commit is contained in:
parent
c79d2d314c
commit
95306e8fef
1 changed files with 1 additions and 0 deletions
|
@ -1000,6 +1000,7 @@ gst_audio_decoder_push_buffers (GstAudioDecoder * dec, gboolean force)
|
||||||
break;
|
break;
|
||||||
} else if (ret == GST_FLOW_OK) {
|
} else if (ret == GST_FLOW_OK) {
|
||||||
GST_LOG_OBJECT (dec, "frame at offset %d of length %d", offset, len);
|
GST_LOG_OBJECT (dec, "frame at offset %d of length %d", offset, len);
|
||||||
|
g_assert (len);
|
||||||
g_assert (offset + len <= av);
|
g_assert (offset + len <= av);
|
||||||
priv->sync_flush = 0;
|
priv->sync_flush = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue