[FFmpeg-cvslog] r16512 - trunk/ffplay.c
bcoudurier
subversion
Sat Jan 10 00:54:57 CET 2009
Author: bcoudurier
Date: Sat Jan 10 00:54:57 2009
New Revision: 16512
Log:
fix segv, always set audio_buf to audio_buf1 if decoding fail
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Sat Jan 10 00:44:52 2009 (r16511)
+++ trunk/ffplay.c Sat Jan 10 00:54:57 2009 (r16512)
@@ -1684,6 +1684,7 @@ static void sdl_audio_callback(void *opa
audio_size = audio_decode_frame(is, &pts);
if (audio_size < 0) {
/* if error, just output silence */
+ is->audio_buf = is->audio_buf1;
is->audio_buf_size = 1024;
memset(is->audio_buf, 0, is->audio_buf_size);
} else {
More information about the ffmpeg-cvslog
mailing list