diff options
Diffstat (limited to 'libavcodec/libgsm.c')
-rw-r--r-- | libavcodec/libgsm.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavcodec/libgsm.c b/libavcodec/libgsm.c index 66fe0ae1b1..16fbb0ebda 100644 --- a/libavcodec/libgsm.c +++ b/libavcodec/libgsm.c @@ -41,9 +41,6 @@ #include "gsm.h" static av_cold int libgsm_encode_close(AVCodecContext *avctx) { -#if FF_API_OLD_ENCODE_AUDIO - av_freep(&avctx->coded_frame); -#endif gsm_destroy(avctx->priv_data); avctx->priv_data = NULL; return 0; @@ -88,12 +85,6 @@ static av_cold int libgsm_encode_init(AVCodecContext *avctx) { } } -#if FF_API_OLD_ENCODE_AUDIO - avctx->coded_frame= avcodec_alloc_frame(); - if (!avctx->coded_frame) - goto error; -#endif - return 0; error: libgsm_encode_close(avctx); |