summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-21 20:42:40 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-12-21 20:42:40 +0000
commitac52ed1b31a942e8685efd08b13c892ecd8e2654 (patch)
tree32f213cb4ab7eb9763e9771b07bb3fa94a41290d /libmpcodecs
parentb4b5c5c02dd52904b0d9563d49733d1f15c7c836 (diff)
downloadmpv-ac52ed1b31a942e8685efd08b13c892ecd8e2654.tar.bz2
mpv-ac52ed1b31a942e8685efd08b13c892ecd8e2654.tar.xz
set keyframe flag at encoding
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8512 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_qtvideo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmpcodecs/ve_qtvideo.c b/libmpcodecs/ve_qtvideo.c
index d9d1356c50..4c9c2f0573 100644
--- a/libmpcodecs/ve_qtvideo.c
+++ b/libmpcodecs/ve_qtvideo.c
@@ -172,7 +172,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
OSErr cres;
long framesizemax;
- UInt8 similarity;
+ UInt8 similarity=0;
long compressedsize;
int in_format=kYUVSPixelFormat;
int width = mpi->width;
@@ -216,6 +216,7 @@ if(!codec_inited){
&framesizemax );
printf("GetMaxCompressionSize returned:%i : MaxSize:%i\n",cres&0xFFFF,framesizemax);
frame_comp=malloc(framesizemax);
+
desc = (ImageDescriptionHandle)NewHandleClear(MAX_IDSIZE); //memory where the desc will be stored
(*desc)->idSize=MAX_IDSIZE;
@@ -230,7 +231,7 @@ if(!codec_inited){
compressor, // codec component
codecNormalQuality, //codecNormalQuality,
codecMaxQuality, //codecNormalQuality,
- 10*25, // keyframe rate
+ 10*30, // keyframe rate
0,
0,
desc);
@@ -251,11 +252,11 @@ if(!codec_inited){
0);
if(cres&0xFFFF)printf("CompressSequenceFrame returned:%i\n",cres&0xFFFF);
- printf("Size %i->%i \n",stride*height,compressedsize);
#if 0
+ printf("Size %i->%i \n",stride*height,compressedsize);
printf("Ratio: %i:1\n",(stride*height)/compressedsize);
#endif
- mencoder_write_chunk(mux_v, compressedsize , 0x10);
+ mencoder_write_chunk(mux_v, compressedsize , similarity?0:0x10);
if(((*desc)->idSize)>MAX_IDSIZE){
printf("FATAL! idSize=%d too big, increase MAX_IDSIZE in ve_qtvideo.c!\n",((*desc)->idSize));