On 25/07/14 15:44, Mike Lockhart wrote:
> The snippet is:
> if ((ret = av->codec_open2(c, codec, NULL)) < 0) {
> char buf[1024];
> av->strerror(ret, buf, 1024);
> fprintf(stderr, "Could not open codec: %s\n", buf);
> return false;
> }
>
> The av->strerror is a pointer that dynamically gets linked to
> av_strerror (the app is C++ and this loosely couples the library so that
> it is easy to change versions). I've looked at av_strerror() in the
> libav source and since -22 doesn't fall into the predefined macro error
> messages numbers, it punts and puts out a meaningless "Error number %d
> occurred". Here is the av_strerror source:
>
I guess the codec requested is not supported.
lu
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api