From cc1e26147dab9c68f1ed20d4447cc3c3421aeab3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 25 Jan 2012 13:58:54 +0100 Subject: [PATCH] amr: port to 0.11 again --- ext/amrnb/amrnbdec.c | 2 +- ext/amrwbdec/amrwbdec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/amrnb/amrnbdec.c b/ext/amrnb/amrnbdec.c index 0b9a09c..53c9bf7 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 5a6e73a..49a1ae7 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 { -- 2.7.4