diff --git a/ext/amrnb/amrnbdec.c b/ext/amrnb/amrnbdec.c index 0b9a09cbe4..53c9bf714c 100644 --- a/ext/amrnb/amrnbdec.c +++ b/ext/amrnb/amrnbdec.c @@ -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; diff --git a/ext/amrwbdec/amrwbdec.c b/ext/amrwbdec/amrwbdec.c index 5a6e73ae96..49a1ae7770 100644 --- a/ext/amrwbdec/amrwbdec.c +++ b/ext/amrwbdec/amrwbdec.c @@ -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 {