amr: port to 0.11 again

This commit is contained in:
Wim Taymans 2012-01-25 13:58:54 +01:00
parent 74de5954af
commit cc1e26147d
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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 {