shithub: sox

Download patch

ref: 6e459618b12eddfe4791b7f43b2f58605352229b
parent: 5df01d065073b21729ad07cb4e59933b2d388f8a
author: rrt <rrt>
date: Thu Jan 3 18:23:36 EST 2008

Fix unsigned vs signed comparison warnings.

--- a/src/ffmpeg.c
+++ b/src/ffmpeg.c
@@ -152,7 +152,8 @@
 {
   ffmpeg_t ffmpeg = (ffmpeg_t)ft->priv;
   AVFormatParameters params;
-  int i, ret;
+  int ret;
+  unsigned i;
 
   ffmpeg->audio_buf = xcalloc(1, AVCODEC_MAX_AUDIO_FRAME_SIZE);
 
@@ -442,7 +443,7 @@
 static int stopwrite(sox_format_t * ft)
 {
   ffmpeg_t ffmpeg = (ffmpeg_t)ft->priv;
-  int i;
+  unsigned i;
 
   /* Close CODEC */
   if (ffmpeg->audio_st) {