ref: acaaffd4c726e09126493f0ac4f72cb57455b246
parent: 217578ee64ae6c277d5048dc01cc8ef85f52f012
author: robs <robs>
date: Sat Jun 28 11:31:09 EDT 2008
quash warnings
--- a/src/ffmpeg.c
+++ b/src/ffmpeg.c
@@ -175,7 +175,7 @@
av_read_play(ffmpeg->ctxt);
/* Find audio stream (FIXME: allow different stream to be selected) */
- for (i = 0; i < ffmpeg->ctxt->nb_streams; i++) {
+ for (i = 0; (unsigned)i < ffmpeg->ctxt->nb_streams; i++) {
AVCodecContext *enc = ffmpeg->ctxt->streams[i]->codec;
if (enc->codec_type == CODEC_TYPE_AUDIO && ffmpeg->audio_index < 0) {
ffmpeg->audio_index = i;
@@ -451,7 +451,7 @@
av_write_trailer(ffmpeg->ctxt);
/* Free the streams */
- for (i = 0; i < ffmpeg->ctxt->nb_streams; i++) {
+ for (i = 0; (unsigned)i < ffmpeg->ctxt->nb_streams; i++) {
av_freep(&ffmpeg->ctxt->streams[i]->codec);
av_freep(&ffmpeg->ctxt->streams[i]);
}