1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

cosmetics

Originally committed as revision 12200 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier
2008-02-25 12:14:15 +00:00
parent b4dc27a829
commit 9df21f24e1

View File

@@ -103,10 +103,8 @@ static unsigned int get_aiff_header(ByteIOContext *pb, AVCodecContext *codec,
double sample_rate;
unsigned int num_frames;
if (size & 1)
size++;
codec->codec_type = CODEC_TYPE_AUDIO;
codec->channels = get_be16(pb);
num_frames = get_be32(pb);
@@ -174,10 +172,8 @@ static int aiff_write_header(AVFormatContext *s)
int aifc = 0;
/* First verify if format is ok */
if (!enc->codec_tag) {
if (!enc->codec_tag)
return -1;
}
if (enc->codec_tag != MKTAG('N','O','N','E'))
aifc = 1;
@@ -343,27 +339,21 @@ static int aiff_read_header(AVFormatContext *s,
if (offset > 0) // COMM is after SSND
goto got_sound;
break;
case MKTAG('F', 'V', 'E', 'R'): /* Version chunk */
version = get_be32(pb);
break;
case MKTAG('N', 'A', 'M', 'E'): /* Sample name chunk */
get_meta (pb, s->title, sizeof(s->title), size);
break;
case MKTAG('A', 'U', 'T', 'H'): /* Author chunk */
get_meta (pb, s->author, sizeof(s->author), size);
break;
case MKTAG('(', 'c', ')', ' '): /* Copyright chunk */
get_meta (pb, s->copyright, sizeof(s->copyright), size);
break;
case MKTAG('A', 'N', 'N', 'O'): /* Annotation chunk */
get_meta (pb, s->comment, sizeof(s->comment), size);
break;
case MKTAG('S', 'S', 'N', 'D'): /* Sampled sound chunk */
offset = get_be32(pb); /* Offset of sound data */
get_be32(pb); /* BlockSize... don't care */
@@ -376,7 +366,6 @@ static int aiff_read_header(AVFormatContext *s,
}
url_fskip(pb, size - 8);
break;
default: /* Jump */
if (size & 1) /* Always even aligned */
size++;