lavf: move avpriv function definition to internal.h