All pastes #1793399 Raw Edit

Miscellany

public text v1 · immutable
#1793399 ·published 2010-02-11 02:29 UTC
rendered paste body
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecPassthroughFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecPassthroughFFmpeg.cpp
index 6432c74..8819c64 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecPassthroughFFmpeg.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Audio/DVDAudioCodecPassthroughFFmpeg.cpp
@@ -258,6 +258,9 @@ void CDVDAudioCodecPassthroughFFmpeg::Dispose()
 
 int CDVDAudioCodecPassthroughFFmpeg::BCReadPacket(uint8_t *buf, int buf_size)
 {
+  if (buf_size == 0)
+    return 0;
+
   int s = buf_size;
 
 #if (LIBAVFORMAT_VERSION_INT > AV_VERSION_INT(52, 47, 0))