mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
opusenc: moan if we get an unexpected amount of data
https://bugzilla.gnome.org/show_bug.cgi?id=660364
This commit is contained in:
parent
f9d4dd5215
commit
f70c921ff9
1 changed files with 6 additions and 0 deletions
|
@ -842,6 +842,12 @@ gst_opus_enc_encode (GstOpusEnc * enc, gboolean flush)
|
|||
GST_ERROR_OBJECT (enc, "Encoding failed: %d", outsize);
|
||||
ret = GST_FLOW_ERROR;
|
||||
goto done;
|
||||
} else if (outsize != bytes_per_packet) {
|
||||
GST_WARNING_OBJECT (enc,
|
||||
"Encoded size %d is different from %d bytes per packet", outsize,
|
||||
bytes_per_packet);
|
||||
ret = GST_FLOW_ERROR;
|
||||
goto done;
|
||||
}
|
||||
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = enc->start_ts +
|
||||
|
|
Loading…
Reference in a new issue