* Every frame is a key_frame
authorPhilip Gladstone <philipjsg@users.sourceforge.net>
Thu, 9 May 2002 01:22:51 +0000 (01:22 +0000)
committerPhilip Gladstone <philipjsg@users.sourceforge.net>
Thu, 9 May 2002 01:22:51 +0000 (01:22 +0000)
Originally committed as revision 470 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/pcm.c

index a3895f5..83982de 100644 (file)
@@ -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;
 }