mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 11:29:55 +00:00
amr: port to 0.11 again
This commit is contained in:
parent
74de5954af
commit
cc1e26147d
2 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ gst_amrnbdec_parse (GstAudioDecoder * dec, GstAdapter * adapter,
|
|||
GST_DEBUG_OBJECT (amrnbdec, "mode %d, block %d", mode, block);
|
||||
|
||||
if (block > size)
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
return GST_FLOW_EOS;
|
||||
|
||||
*offset = 0;
|
||||
*length = block;
|
||||
|
|
|
@ -189,7 +189,7 @@ gst_amrwbdec_parse (GstAudioDecoder * dec, GstAdapter * adapter,
|
|||
|
||||
if (block) {
|
||||
if (block > size)
|
||||
return GST_FLOW_UNEXPECTED;
|
||||
return GST_FLOW_EOS;
|
||||
*offset = 0;
|
||||
*length = block;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue