[MPlayer-cvslog] r37630 - trunk/libmpcodecs/ad_hwac3.c
reimar
subversion at mplayerhq.hu
Mon Feb 8 22:47:24 CET 2016
Author: reimar
Date: Mon Feb 8 22:47:24 2016
New Revision: 37630
Log:
ad_hwac3: Fix incorrect use of memcpy.
Must use memmove since source and destination
overlap.
Fixes Coverity warning.
Modified:
trunk/libmpcodecs/ad_hwac3.c
Modified: trunk/libmpcodecs/ad_hwac3.c
==============================================================================
--- trunk/libmpcodecs/ad_hwac3.c Mon Feb 8 22:35:21 2016 (r37629)
+++ trunk/libmpcodecs/ad_hwac3.c Mon Feb 8 22:47:24 2016 (r37630)
@@ -138,7 +138,7 @@ static int ac3dts_fillbuff(sh_audio_t *s
}
}
/* bad file => resync*/
- memcpy(sh_audio->a_in_buffer, sh_audio->a_in_buffer + 1, 11);
+ memmove(sh_audio->a_in_buffer, sh_audio->a_in_buffer + 1, 11);
--sh_audio->a_in_buffer_len;
}
mp_msg(MSGT_DECAUDIO, MSGL_DBG2, "ac3dts: %s len=%d flags=0x%X %d Hz %d bit/s\n", isdts == 1 ? "DTS" : isdts == 0 ? "AC3" : "unknown", length, flags, sample_rate, bit_rate);
More information about the MPlayer-cvslog
mailing list