lavc: fix mixing CODEC_ID/AV_CODEC_ID in C++ code.