Hi,
Gustavo Felisberto wrote:
> Using available source code I managed to do a simple video capture program:
>
> http://pastebin.com/m5e2840a8
>
> But now I'm trying to use it in a larger project. The thing is when I
> copy/pasted it to a c++ file I started receiving a "-12" when calling
> int result = av_open_input_file(&pFormatCtx, "/dev/video0", iformat, 0,
> &formatParams);
-12 should be ENOMEM, which (I think) does not make too much sense here...
The only issue I can see is that you risk to pass random data in
formatParams. Try a memset() to 0 on this variable before using it.
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user