summaryrefslogtreecommitdiff
path: root/libavcodec/pcm.c
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2002-05-09 01:22:51 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2002-05-09 01:22:51 +0000
commit4c3d2e5f86e39889698f0a2a055d22b83984dd66 (patch)
tree0b55678a68399d86ec539e7f7424637151f97bb5 /libavcodec/pcm.c
parent4a663d804242200a403a98f580addd6c26503585 (diff)
* Every frame is a key_frame
Originally committed as revision 470 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r--libavcodec/pcm.c3
1 files changed, 3 insertions, 0 deletions
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;
}