[FFmpeg-devel] [PATCH] MpegEncContext must be initialized before calling ff_h263_decode_init

Kostya kostya.shishkov
Sat Jun 27 18:38:05 CEST 2009

On Sat, Jun 27, 2009 at 11:19:48AM +0200, Reimar D?ffinger wrote:
> Hello,
> ff_h263_decode_init calls MPV_common_init which then need mb_width to
> calculate mb_stride.
> So my conclusion is, MpegEncContext needs to be initialized before
> calling this function.
> This is probably what issue1233 is about.
I've read issue 1233 and looks like the problem is with him not
initializing codec properly - you should set width and height to
real values before calling avcodec_open(), otherwise it's GIGO.

I will gladly accept a patch implementing decoding sequence header for VC-1
before h263_decode_init() when dimensions are not set, but not your hack.

More information about the ffmpeg-devel mailing list