diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2005-05-29 19:28:00 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2005-05-29 19:28:00 +0000 |
commit | 796f3523ef00cbb7716550d2493d9741287c5c77 (patch) | |
tree | 8b8861c91a9f092e55cb1df71301d4ee893fde2a /src | |
parent | 3bc503078d378dcf2ca0f80b04e052825f2b4629 (diff) | |
download | xine-lib-796f3523ef00cbb7716550d2493d9741287c5c77.tar.gz xine-lib-796f3523ef00cbb7716550d2493d9741287c5c77.tar.bz2 |
**BUGFIX**
Don't feed the same data to the decoder twice
CVS patchset: 7595
CVS date: 2005/05/29 19:28:00
Diffstat (limited to 'src')
-rw-r--r-- | src/libffmpeg/audio_decoder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libffmpeg/audio_decoder.c b/src/libffmpeg/audio_decoder.c index 9450c06e4..f341c6ccb 100644 --- a/src/libffmpeg/audio_decoder.c +++ b/src/libffmpeg/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.15 2005/05/29 19:20:49 jstembridge Exp $ + * $Id: audio_decoder.c,v 1.16 2005/05/29 19:28:00 jstembridge Exp $ * * xine audio decoder plugin using ffmpeg * @@ -279,8 +279,11 @@ static void ff_audio_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) "ffmpeg_audio_dec: error decompressing audio frame\n"); this->size=0; return; - } else if (bytes_consumed == 0) + } else if (bytes_consumed == 0) { + if (offset) + memmove(this->buf, &this->buf[offset], this->size); return; + } /* dispatch the decoded audio */ out = 0; |