[Ffmpeg-devel] non-avc h264 stream problems
Thu Jun 9 22:02:20 CEST 2005
On Thursday 09 June 2005 18:19, Ronald S. Bultje wrote:
> Decoding an AVI containing h264 (e.g. from VSoft ) doesn't work with
> current CVS (June 9, 2005) of libavcodec/ffmpeg:
> * in avienc.c, add VSSH as a fourcc for h264. As extradata, parse the
> extra bytes from the BITMAPINFOHEADER (ffmpeg does that already).
> * in h264:7346 (decode_frame()), there's "if (0 < decode_nal_header(..))
> ...". That should be "if (decode_nal_header(..) < 0) ...", I think,
> because a value < 0 means an error; any other value is a valid buffer
> index (right?).
> * doing this makes the first I-frame display correctly (in a checkout of
> a few weeks ago).
> * Next frames will not decode correctly, because of (in a checkout of a
> few weeks ago) an assert in h264.c:2567 (in mc_dir_part()) or (in a
> checkout of today) all sort of warnings like this "[h264 @
> 0x833f294]illegal short term buffer state detected
> " and "[h264 @ 0x833f294]concealing 0 DC, 0 AC, 0 MV errors". I didn't
> look closer into this yet.
> Attached is the first two. Doesn't fix it, but maybe it's a start...
More information about the ffmpeg-devel