Mercurial > libavcodec.hg
diff pcm.c @ 925:7fccaa0d699d libavcodec
AVVideoFrame -> AVFrame
| author | michaelni |
|---|---|
| date | Mon, 09 Dec 2002 12:03:43 +0000 |
| parents | 5a8f80522cf8 |
| children | 48349e11c9b2 |
line wrap: on
line diff
--- a/pcm.c Mon Dec 09 00:29:17 2002 +0000 +++ b/pcm.c Mon Dec 09 12:03:43 2002 +0000 @@ -128,11 +128,17 @@ default: break; } + + avctx->coded_frame= avcodec_alloc_frame(); + avctx->coded_frame->key_frame= 1; + return 0; } static int pcm_encode_close(AVCodecContext *avctx) { + av_freep(&avctx->coded_frame); + switch(avctx->codec->id) { case CODEC_ID_PCM_ALAW: if (--linear_to_alaw_ref == 0) @@ -237,7 +243,6 @@ default: return -1; } - avctx->key_frame = 1; //avctx->frame_size = (dst - frame) / (sample_size * avctx->channels); return dst - frame;
