Mercurial > libavcodec.hg
comparison mpegaudio.c @ 1031:19de1445beb2 libavcodec
use av_malloc() functions - added av_strdup and av_realloc()
author | bellard |
---|---|
date | Thu, 23 Jan 2003 23:03:09 +0000 |
parents | 7fccaa0d699d |
children | bb5de8a59da8 |
comparison
equal
deleted
inserted
replaced
1030:801f2739264a | 1031:19de1445beb2 |
---|---|
768 } | 768 } |
769 | 769 |
770 static int MPA_encode_close(AVCodecContext *avctx) | 770 static int MPA_encode_close(AVCodecContext *avctx) |
771 { | 771 { |
772 av_freep(&avctx->coded_frame); | 772 av_freep(&avctx->coded_frame); |
773 return 0; | |
773 } | 774 } |
774 | 775 |
775 AVCodec mp2_encoder = { | 776 AVCodec mp2_encoder = { |
776 "mp2", | 777 "mp2", |
777 CODEC_TYPE_AUDIO, | 778 CODEC_TYPE_AUDIO, |