X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=avi2swf%2Favi2swf.cc;h=c63df799872c70d42552d903eae672abc3e6d566;hb=18a26d55cce0b899106edb796bad0df32de8259f;hp=71e2f7de742bc349ec9e19107da9f46b25f5b5fb;hpb=0a9b0cba9768a3a991ca8cb008e201991ce306d6;p=swftools.git diff --git a/avi2swf/avi2swf.cc b/avi2swf/avi2swf.cc index 71e2f7d..c63df79 100644 --- a/avi2swf/avi2swf.cc +++ b/avi2swf/avi2swf.cc @@ -4,8 +4,20 @@ Part of the swftools package. Copyright (c) 2001,2002,2003 Matthias Kramm + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. - This file is distributed under the GPL, see file COPYING for details */ + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include @@ -316,10 +328,12 @@ bool videoreader_avifile_eof(videoreader_t* v) void videoreader_avifile_close(videoreader_t* v) { videoreader_avifile_internal*i = (videoreader_avifile_internal*)v->internal; - ringbuffer_clear(&i->audio_buffer); if(verbose) { printf("videoreader_close()\n");fflush(stdout); } + if(i->do_audio) { + ringbuffer_clear(&i->audio_buffer); + } } void* videoreader_avifile_getinfo(videoreader_t* v, char* name) {