Hi,

I build dvbcut-cvs-14 against current ffmpeg sources.
When re-encoding, I always get the warning:
"rc buffer underflow".
I believe this is due to the AVContext's rc_initial_buffer_occupancy
parameter being uninitialized.
In the patch below, it is initialized like in ffmpeg.c,
with this the warning goes away (and in fact recoded pictures
differ slightly).

Regards,
Wolfram.

--- src/stream.h~       2006-10-29 21:03:53.000000000 +0100
+++ src/stream.h        2006-11-10 14:41:52.000000000 +0100
@@ -54,6 +54,7 @@
     avcc->bit_rate=9500000;
     avcc->rc_max_rate=9500000;
     avcc->rc_buffer_size=224*1024*8;
+    avcc->rc_initial_buffer_occupancy = avcc->rc_buffer_size*3/4;
     avcc->qmax=2;
     avcc->mb_lmax= FF_QP2LAMBDA * 2;
     avcc->lmax= FF_QP2LAMBDA * 2;

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DVBCUT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to