diff --git a/ffmpeg.c b/ffmpeg.c
index 38ac075d85a0c8421d0df71fc4bb1a47f40a40c6..f9fa2fb1a942ca2cf33992cadddd370d5c1e4b11 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -725,8 +725,6 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, AVCodecContext *avctx
     }
 }
 
-#define MAX_AUDIO_PACKET_SIZE (128 * 1024)
-
 static void do_audio_out(AVFormatContext *s,
                          OutputStream *ost,
                          InputStream *ist,
@@ -1010,9 +1008,6 @@ static void pre_process_video_frame(InputStream *ist, AVPicture *picture, void *
     *bufp = buf;
 }
 
-/* we begin to correct av delay at this threshold */
-#define AV_DELAY_MAX 0.100
-
 static void do_subtitle_out(AVFormatContext *s,
                             OutputStream *ost,
                             InputStream *ist,