Remove (AVFormatContext**)

This commit is contained in:
raven02 2014-04-06 17:32:28 +08:00
parent 5b19f1d53c
commit 485b5df7cf

View file

@ -372,7 +372,7 @@ int __Mp3InitContext(Mp3Context *ctx) {
int ret;
// Load audio buffer
if ((ret = avformat_open_input((AVFormatContext**)&ctx->avformat_context, NULL, av_find_input_format("mp3"), NULL)) < 0) {
if ((ret = avformat_open_input(&ctx->avformat_context, NULL, av_find_input_format("mp3"), NULL)) < 0) {
ERROR_LOG(ME, "avformat_open_input: Cannot open input %d", ret);
return -1;
}