fix generic-pc: ffmpeg is deprecated

This commit is contained in:
max10
2015-04-22 14:26:19 +02:00
parent b7bb43a670
commit 1bca61569e
2 changed files with 14 additions and 14 deletions

View File

@@ -369,7 +369,7 @@ void cAudio::run()
lt_info("%s: avcodec_open2() failed\n", __func__);
goto out;
}
frame = avcodec_alloc_frame();
frame = av_frame_alloc();
if (!frame) {
lt_info("%s: avcodec_alloc_frame failed\n", __func__);
goto out2;
@@ -448,7 +448,7 @@ void cAudio::run()
av_free(obuf);
swr_free(&swr);
out3:
avcodec_free_frame(&frame);
av_frame_free(&frame);
out2:
avcodec_close(c);
c = NULL;