give s->resample_context to avoid segfault, avclass was moved