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

This commit is contained in:
Mark Nauwelaerts 2012-02-16 12:15:47 +01:00
parent c79d2d314c
commit 95306e8fef

View file

@ -1000,6 +1000,7 @@ gst_audio_decoder_push_buffers (GstAudioDecoder * dec, gboolean force)
break;
} else if (ret == GST_FLOW_OK) {
GST_LOG_OBJECT (dec, "frame at offset %d of length %d", offset, len);
g_assert (len);
g_assert (offset + len <= av);
priv->sync_flush = 0;
} else {