[Ffmpeg-cvslog] r7620 - in trunk: Changelog libavcodec/flashsvenc.c

banan subversion
Sun Jan 21 22:24:05 CET 2007


Author: banan
Date: Sun Jan 21 22:24:05 2007
New Revision: 7620

Modified:
   trunk/Changelog
   trunk/libavcodec/flashsvenc.c

Log:
Add flashsv encoder to changelog and fix the encoder so it actually works.


Modified: trunk/Changelog
==============================================================================
--- trunk/Changelog	(original)
+++ trunk/Changelog	Sun Jan 21 22:24:05 2007
@@ -67,6 +67,7 @@
 - GIF picture decoder
 - Intel Music decoder
 - Musepack decoder
+- Flash Screen Video encoder
 
 version 0.4.9-pre1:
 

Modified: trunk/libavcodec/flashsvenc.c
==============================================================================
--- trunk/libavcodec/flashsvenc.c	(original)
+++ trunk/libavcodec/flashsvenc.c	Sun Jan 21 22:24:05 2007
@@ -211,11 +211,12 @@
                 //av_log(avctx, AV_LOG_INFO, "compressed blocks: %d\n", size);
                 */
                 bytestream_put_be16(&ptr,(unsigned int)zsize);
-                buf_pos += zsize;
+                buf_pos += zsize+2;
                 //av_log(avctx, AV_LOG_ERROR, "buf_pos = %d\n", buf_pos);
             } else {
                 pred_blocks++;
                 bytestream_put_be16(&ptr,0);
+                buf_pos += 2;
             }
         }
     }
@@ -293,7 +294,7 @@
 
     res = encode_bitstream(s, p, buf, buf_size, opt_w*16, opt_h*16, s->previous_frame, &I_frame);
 #endif
-
+    av_log(avctx, AV_LOG_ERROR, "res %d\n", res);
     //save the current frame
     memcpy(s->previous_frame, p->data[0], s->image_height*p->linesize[0]*3);
 




More information about the ffmpeg-cvslog mailing list