- out_rate = av_get_int(aresample->swr, "osr", NULL);
- out_layout = av_get_int(aresample->swr, "ocl", NULL);
- out_format = av_get_int(aresample->swr, "osf", NULL);
+ av_opt_get_int(aresample->swr, "osr", 0, &out_rate);
+ av_opt_get_int(aresample->swr, "ocl", 0, &out_layout);
+ av_opt_get_sample_fmt(aresample->swr, "osf", 0, &out_format);