Rotating a video during encoding with ffmpeg and libav API results in half of video corrupted
问题 I'm using the C API for ffmpeg/libav to rotate a vertically filmed iphone video during the encoding step. There are other questions asking to do a similar thing but they are all using the CLI tool to do so. So far I was able to figure out how to use the AVFilter to rotate the video, base off this example https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/filtering_video.c The problem is that half the output file is corrupt. Here is the code for my encoding logic. Its written with