lavc: Drop deprecated thread opaque and codec pkt