If pkg-config is available libavcodec api version is checked and
cmake fails if the required version isn't available.
In case pkg-config isn't available a notification message with the
required version is printed.
This fixes/prevents #740.
If pkg-config is available libavcodec api version is checked and
cmake fails if the required version isn't available.
In case pkg-config isn't available a notification message with the
required version is printed.
This fixes/prevents #740.
ffmpeg headers are supposed to be referenced as libavcodec/avcodec.h.
Therefore, we actually need to find the path to the libavcodec directory, not
avcodec.h.