lavf,lavc: free avoptions in a generic way.