mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
generic-pc: reduce warnings
Origin commit data
------------------
Branch: master
Commit: 1d310db5e9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-06-20 (Thu, 20 Jun 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -347,6 +347,7 @@ void cAudio::run()
|
|||||||
uint8_t *inbuf = (uint8_t *)av_malloc(INBUF_SIZE);
|
uint8_t *inbuf = (uint8_t *)av_malloc(INBUF_SIZE);
|
||||||
AVPacket avpkt;
|
AVPacket avpkt;
|
||||||
int ret, driver;
|
int ret, driver;
|
||||||
|
int av_ret = 0;
|
||||||
/* libao */
|
/* libao */
|
||||||
ao_info *ai;
|
ao_info *ai;
|
||||||
// ao_device *adevice;
|
// ao_device *adevice;
|
||||||
@@ -460,13 +461,13 @@ void cAudio::run()
|
|||||||
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,37,100)
|
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(57,37,100)
|
||||||
avcodec_decode_audio4(c, frame, &gotframe, &avpkt);
|
avcodec_decode_audio4(c, frame, &gotframe, &avpkt);
|
||||||
#else
|
#else
|
||||||
int ret = avcodec_send_packet(c, &avpkt);
|
av_ret = avcodec_send_packet(c, &avpkt);
|
||||||
if (ret != 0 && ret != AVERROR(EAGAIN)) {
|
if (av_ret != 0 && av_ret != AVERROR(EAGAIN)) {
|
||||||
hal_info("%s: avcodec_send_packet %d\n", __func__, ret);
|
hal_info("%s: avcodec_send_packet %d\n", __func__, av_ret);
|
||||||
}else {
|
}else {
|
||||||
ret = avcodec_receive_frame(c, frame);
|
av_ret = avcodec_receive_frame(c, frame);
|
||||||
if (ret != 0 && ret != AVERROR(EAGAIN)) {
|
if (av_ret != 0 && av_ret != AVERROR(EAGAIN)) {
|
||||||
hal_info("%s: avcodec_send_packet %d\n", __func__, ret);
|
hal_info("%s: avcodec_send_packet %d\n", __func__, av_ret);
|
||||||
}else {
|
}else {
|
||||||
gotframe = 1;
|
gotframe = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user