fix generic-pc: ffmpeg is deprecated

Origin commit data
------------------
Branch: master
Commit: 1bca61569e
Author: max_10 <max_10@gmx.de>
Date: 2015-04-22 (Wed, 22 Apr 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2015-04-22 14:26:19 +02:00
parent f0d8517420
commit 2fb11f55ab
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;