1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-30 23:18:11 +02:00

* keeping compiler happy and quiet

Originally committed as revision 1817 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Zdenek Kabelac
2003-04-23 18:38:34 +00:00
parent b6a17df438
commit 546031ee86
3 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
#ifndef FFMPEG_AVI_H
#define FFMPEG_AVI_H
#include "avcodec.h"
#define AVIF_HASINDEX 0x00000010 // Index at end of file? #define AVIF_HASINDEX 0x00000010 // Index at end of file?
#define AVIF_MUSTUSEINDEX 0x00000020 #define AVIF_MUSTUSEINDEX 0x00000020
@@ -27,5 +31,6 @@ extern const CodecTag codec_bmp_tags[];
extern const CodecTag codec_wav_tags[]; extern const CodecTag codec_wav_tags[];
unsigned int codec_get_tag(const CodecTag *tags, int id); unsigned int codec_get_tag(const CodecTag *tags, int id);
enum CodecID;
enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag); enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
#endif /* FFMPEG_AVI_H */

View File

@@ -525,9 +525,9 @@ static int avi_write_idx1(AVFormatContext *s)
unsigned char tag[5]; unsigned char tag[5];
if (!url_is_streamed(pb)) { if (!url_is_streamed(pb)) {
AVIIentry* ie, *tie; AVIIentry* ie = 0, *tie;
int entry[MAX_STREAMS]; int entry[MAX_STREAMS];
int empty, stream_id; int empty, stream_id = -1;
idx_chunk = start_tag(pb, "idx1"); idx_chunk = start_tag(pb, "idx1");
memset(&entry[0], 0, sizeof(entry)); memset(&entry[0], 0, sizeof(entry));

View File

@@ -556,7 +556,6 @@ static void dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
{ {
DynBuffer *d = opaque; DynBuffer *d = opaque;
int new_size, new_allocated_size; int new_size, new_allocated_size;
uint8_t *new_buffer;
/* reallocate buffer if needed */ /* reallocate buffer if needed */
new_size = d->pos + buf_size; new_size = d->pos + buf_size;