----Original Message-----
From: Libav-user [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Dienstag, 26. April 2016 16:29
To: This list is about using libavcodec, libavformat, libavutil, libavdevice 
and libavfilter.
Subject: Re: [Libav-user] avcodec_open2 error when running 
encoding_decodingexample

>>
>
>Thanks. Any ideas on how to do that on Visual Studio 2015?
>
>
>Hi
>try displaying error message:
>
>char str_err[256];
>AnsiString stre;
>
>
>    errv = avcodec_open2(c, codec, NULL);
>    if(errv<0)
>    {
>       if(av_strerror(errv,str_err,256)==0){ stre.printf("Error (%s) returned 
> from encoded video",str_err);  }
>         else { stre.printf("Error (%d) returned from encoded video",errv);  }
>    }
>

I get this:
Error (Invalid argument) returned from encoded video

 

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to