X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fgsm_parser.c;h=1054a30ca919fa9fe17d8fcf48c1135cd3657e4f;hb=3b0af76c1b43077edf5503f5b19a2abc18fa6842;hp=9a3b94ef1d8bb152b413408d69d5555e249236dd;hpb=27e61a716c893a6ae67ca8f859c735bc0b0b799a;p=ffmpeg diff --git a/libavcodec/gsm_parser.c b/libavcodec/gsm_parser.c index 9a3b94ef1d8..1054a30ca91 100644 --- a/libavcodec/gsm_parser.c +++ b/libavcodec/gsm_parser.c @@ -25,6 +25,7 @@ * Splits packets into individual blocks. */ +#include "libavutil/avassert.h" #include "parser.h" #include "gsm.h" @@ -55,10 +56,7 @@ static int gsm_parse(AVCodecParserContext *s1, AVCodecContext *avctx, s->duration = GSM_FRAME_SIZE * 2; break; default: - *poutbuf = buf; - *poutbuf_size = buf_size; - av_log(avctx, AV_LOG_ERROR, "Invalid codec_id\n"); - return buf_size; + av_assert0(0); } }