ffmpeg: check for existence of avcodec_end_packet
vtkFFMPEGVideoSource requires functions in FFPMEG 3.1 or greater. This commit adds a CMake compilation test that checks for one of these functions in FFMPEG, and if it isn't available, the class and its test are not added to the build.