mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
misc: Fix up a few warnings uncovered by LTO
* direct use of memcpy() instead of ci->memcpy() in flac and mod * uninitialized variable in mpegplayer Change-Id: I2d08682d5f66c319780e69e3ff63d600c61d8f5a
This commit is contained in:
parent
4c60bc9e68
commit
144d1b1e81
4 changed files with 15 additions and 18 deletions
|
@ -369,7 +369,7 @@ void stretch_image_plane(const uint8_t * src, uint8_t *dst, int stride,
|
|||
bool vo_draw_frame_thumb(uint8_t * const * buf, const struct vo_rect *rc)
|
||||
{
|
||||
void *mem;
|
||||
size_t bufsize;
|
||||
size_t bufsize = 0;
|
||||
uint8_t *yuv[3];
|
||||
struct vo_rect thumb_rc;
|
||||
int thumb_width, thumb_height;
|
||||
|
|
|
@ -93,12 +93,12 @@ static bool flac_init(FLACContext* fc, int first_frame_offset)
|
|||
fc->sample_skip = 0;
|
||||
|
||||
/* Reset sample buffers */
|
||||
memset(decoded0, 0, sizeof(decoded0));
|
||||
memset(decoded1, 0, sizeof(decoded1));
|
||||
memset(decoded2, 0, sizeof(decoded2));
|
||||
memset(decoded3, 0, sizeof(decoded3));
|
||||
memset(decoded4, 0, sizeof(decoded4));
|
||||
memset(decoded5, 0, sizeof(decoded5));
|
||||
ci->memset(decoded0, 0, sizeof(decoded0));
|
||||
ci->memset(decoded1, 0, sizeof(decoded1));
|
||||
ci->memset(decoded2, 0, sizeof(decoded2));
|
||||
ci->memset(decoded3, 0, sizeof(decoded3));
|
||||
ci->memset(decoded4, 0, sizeof(decoded4));
|
||||
ci->memset(decoded5, 0, sizeof(decoded5));
|
||||
|
||||
/* Set sample buffers in decoder structure */
|
||||
fc->decoded[0] = decoded0;
|
||||
|
|
|
@ -371,6 +371,3 @@ const SpeexMode * speex_lib_get_mode (int mode)
|
|||
|
||||
return speex_mode_list[mode];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -424,7 +424,7 @@ void initmodplayer(void)
|
|||
/* Set Default Panning */
|
||||
mixer_setpanning(c, panningvalues[c]);
|
||||
/* Reset channels in the MOD Player */
|
||||
memset(&modplayer.modchannel[c], 0, sizeof(struct s_modchannel));
|
||||
ci->memset(&modplayer.modchannel[c], 0, sizeof(struct s_modchannel));
|
||||
/* Don't play anything */
|
||||
mixer.channel[c].channelactive = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue