Currently I'm doing a research project in which I use ffmpeg.
For that project I need to extract motion vectors so I looked on the web
for solution and found the use of AVMotionVector (like in file
frame.cpp) but with that method I get a segfault so I looked for the
reason and found that avcodec_decode_video2 is deprecated. I looked for
a replacement solution but I didn't find any, so here is my question :
How to replace avcodec_decode_video2 in the version ffmpeg-3.2.4 ?
P.S : You can find attached two c++ class which are one for frame and
another one for video