[FFmpeg-devel] picture size invalid calling avformat_alloc_context();

Stuart Smith stuartmartinsmith
Sat Sep 12 21:40:10 CEST 2009


Hi, have just updated my local SVN working copy and now I get 'picture size
invalid (268524928x3435973836) when calling avformat_alloc_contex() and I
get an 'access violation'.

 

This used to work under VS2008 using shared libraries built under Mingw so
I'm not too sure what I have done wrong.

 

The code is as follows (copied from ffmpeg.c):

 

    av_register_all();

 

    for(i=0; i<CODEC_TYPE_NB; i++){

        avcodec_opts[i]= avcodec_alloc_context2((CodecType)i);

    }

    avformat_opts = avformat_alloc_context();

    sws_opts = sws_getContext(16, 16, (PixelFormat)0, 16, 16,
(PixelFormat)0, sws_flags, NULL,NULL,NULL);

 

Any advice much appreciated.

 

Thanks

Stuart

 




More information about the ffmpeg-devel mailing list