mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libeplayer/container_ffmpeg: switch to ffmpeg 2.0 API
This commit is contained in:
@@ -435,7 +435,7 @@ static void FFMPEGThread(Context_t * context)
|
||||
swr = NULL;
|
||||
}
|
||||
if (decoded_frame) {
|
||||
avcodec_free_frame(&decoded_frame);
|
||||
av_frame_free(&decoded_frame);
|
||||
decoded_frame = NULL;
|
||||
}
|
||||
context->output->Command(context, OUTPUT_CLEAR, NULL);
|
||||
@@ -455,7 +455,7 @@ static void FFMPEGThread(Context_t * context)
|
||||
exit(1);
|
||||
}
|
||||
} else
|
||||
avcodec_get_frame_defaults(decoded_frame);
|
||||
av_frame_unref(decoded_frame);
|
||||
|
||||
int len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &packet);
|
||||
if (len < 0) {
|
||||
@@ -635,7 +635,7 @@ static void FFMPEGThread(Context_t * context)
|
||||
if (swr)
|
||||
swr_free(&swr);
|
||||
if (decoded_frame)
|
||||
avcodec_free_frame(&decoded_frame);
|
||||
av_frame_free(&decoded_frame);
|
||||
|
||||
if (context->playback)
|
||||
context->playback->abortPlayback = 1;
|
||||
|
Reference in New Issue
Block a user