# HG changeset patch # User banan # Date 1169414645 0 # Node ID 75942fdfd1a19e2cd41eb7612aecba7a60d0b580 # Parent 682b2e1ff76ace89a849bc6e30fd999c4846029b Add flashsv encoder to changelog and fix the encoder so it actually works. diff -r 682b2e1ff76a -r 75942fdfd1a1 flashsvenc.c --- a/flashsvenc.c Sun Jan 21 21:06:10 2007 +0000 +++ b/flashsvenc.c Sun Jan 21 21:24:05 2007 +0000 @@ -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);