summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-09 12:03:43 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-09 12:03:43 +0000
commit492cd3a9203779380cea24f23190b92af2b48007 (patch)
tree4a673a16c3e2c0ac4dc28a10ae2d5f6b6a32fda4 /libavcodec/adpcm.c
parentf694168d524d1c84f5f20f4260fcab1f4d8c11d7 (diff)
AVVideoFrame -> AVFrame
Originally committed as revision 1327 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/adpcm.c')
-rw-r--r--libavcodec/adpcm.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c
index 543e364abc..e31c682339 100644
--- a/libavcodec/adpcm.c
+++ b/libavcodec/adpcm.c
@@ -126,12 +126,17 @@ static int adpcm_encode_init(AVCodecContext *avctx)
return -1;
break;
}
+
+ avctx->coded_frame= avcodec_alloc_frame();
+ avctx->coded_frame->key_frame= 1;
+
return 0;
}
static int adpcm_encode_close(AVCodecContext *avctx)
{
- /* nothing to free */
+ av_freep(&avctx->coded_frame);
+
return 0;
}
@@ -253,7 +258,6 @@ static int adpcm_encode_frame(AVCodecContext *avctx,
default:
return -1;
}
- avctx->key_frame = 1;
return dst - frame;
}