Mercurial > libavcodec.hg
changeset 4377:75942fdfd1a1 libavcodec
Add flashsv encoder to changelog and fix the encoder so it actually works.
author | banan |
---|---|
date | Sun, 21 Jan 2007 21:24:05 +0000 |
parents | 682b2e1ff76a |
children | d15d3cd71df2 |
files | flashsvenc.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);