aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-13 21:48:05 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-13 21:48:05 +0000
commit1a56543279a6fd146c8616781b4160e207bb4f6d (patch)
tree4ca37977d896e803a3990e8491f75d02edf49dfd /libavcodec/mjpeg.c
parentd95ecd058e6256b6deacad8b09fbe58b52f07430 (diff)
downloadffmpeg-1a56543279a6fd146c8616781b4160e207bb4f6d.tar.gz
win32 fixes
Originally committed as revision 84 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index 1f216c2949..7410583f18 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -16,8 +16,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <stdlib.h>
-#include <stdio.h>
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
@@ -423,12 +421,20 @@ void mjpeg_encode_mb(MpegEncContext *s,
//#define DEBUG
+#ifndef CONFIG_WIN32
+
#ifdef DEBUG
#define dprintf(fmt,args...) printf(fmt, ## args)
#else
#define dprintf(fmt,args...)
#endif
+#else
+
+inline void dprintf(const char* fmt,...) {}
+
+#endif
+
/* compressed picture size */
#define PICTURE_BUFFER_SIZE 100000