Trying to write program which uses libav to extract raw pixel data (~BMP) from arbitrary video. Everything goes well except sws_scale() failing to convert AVFrame to RGB24.
I formulated minimal example of it where AVFrame is being created and initialized with 4 different methods found on internet: https://github.com/SlavMFM/libav_bmp_example - all of them fail in different ways. How can I fix it so sws_scale() does the convertion?