[MPlayer-dev-eng] [BUG] [PATCH] encoding with lavc and b-frames is partially broken

Nico Sabbi nicola_sabbi at fastwebnet.it
Sun Apr 23 10:48:04 CEST 2006


Hi,
since rvision 1.137
http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/libmpcodecs/ve_lavc.c.diff?r1=1.136&r2=1.137

for as many as INITIAL vmax_b_frames
{
    (out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, 
mux_v->buffer_size, pic)) == -1
    [mpeg2video @ 0xb7e0d548]Error, Invalid timestamp=0, last=0
    muxer_write_chunk(mux_v, -1);
}

consequently the reported bitrate (and avi header) tends to MAXINT

The attached patch fixes it;  it's just a workaround, but maybe  it's 
acceptable considering that atm
no filter passes through the pts



-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavc.diff
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060423/98f0c07c/attachment.bin>


More information about the MPlayer-dev-eng mailing list