Revert "bump and fix libavcodec and libavformat API"

This reverts commit 2d57d9e6e067c283e95561f35d54e10e2b6571b0.