Commit 95306e8f authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

audiodecoder: assert some more that subclass parsed frame has proper len

parent c79d2d31
...@@ -1000,6 +1000,7 @@ gst_audio_decoder_push_buffers (GstAudioDecoder * dec, gboolean force) ...@@ -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 {
......
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