[Libav-user] avcodec_open seg fault?

Kalileo kalileo at universalx.net
Tue Apr 10 03:34:52 CEST 2012

On Apr 10, 2012, at 04:11 , Jeremy Graham wrote:

> I did try using avcodec_open2 as well but I still got a seg fault out of it. I set the third parameter to NULL, however.  Is that what I am doing wrong?

No, NULL is ok there.

Try setting these 2 values before you open the codec:

c->codec_id   = codec->id;
c->codec_type = AVMEDIA_TYPE_VIDEO ;

More information about the Libav-user mailing list