From 4c3d2e5f86e39889698f0a2a055d22b83984dd66 Mon Sep 17 00:00:00 2001 From: Philip Gladstone Date: Thu, 9 May 2002 01:22:51 +0000 Subject: [PATCH] * Every frame is a key_frame Originally committed as revision 470 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index a3895f5b51..83982defe3 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -237,6 +237,9 @@ static int encode_frame(AVCodecContext *avctx, default: return -1; } + avctx->key_frame = 1; + avctx->frame_size = (dst - frame) / (sample_size * avctx->channels); + return dst - frame; }