diff options
| author | Luca Abeni <[email protected]> | 2008-09-08 14:24:59 +0000 | 
|---|---|---|
| committer | Michael Niedermayer <[email protected]> | 2008-09-08 14:24:59 +0000 | 
| commit | dd1c8f3e6e5380f993c86750bb09fd42e130143f (patch) | |
| tree | 2ae5b2bbda1b685069f4db6ed408097288590dde /libavformat/riff.c | |
| parent | 71375e05006e68fecdeb8d5fa80c3cce52a5cf86 (diff) | |
Bump Major version, this commit is almost just renaming bits_per_sample to
bits_per_coded_sample but that cannot be done seperately.
Patch by Luca Abeni
Also reset the minor version and fix the forgotton change to libfaad.
Note: The API/ABI should not be considered stable yet, there still may
be a change done here or there if some developer has some cleanup ideas and
patches!
Originally committed as revision 15262 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/riff.c')
| -rw-r--r-- | libavformat/riff.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/libavformat/riff.c b/libavformat/riff.c index 95e6248193..0cab2650ce 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -251,8 +251,8 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)          if (!(bps = av_get_bits_per_sample(enc->codec_id)))              bps = 16; // default to 16      } -    if(bps != enc->bits_per_sample && enc->bits_per_sample){ -        av_log(enc, AV_LOG_WARNING, "requested bits_per_sample (%d) and actually stored (%d) differ\n", enc->bits_per_sample, bps); +    if(bps != enc->bits_per_coded_sample && enc->bits_per_coded_sample){ +        av_log(enc, AV_LOG_WARNING, "requested bits_per_coded_sample (%d) and actually stored (%d) differ\n", enc->bits_per_coded_sample, bps);      }      if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_AC3) { @@ -327,7 +327,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *ta      put_le32(pb, enc->height);      put_le16(pb, 1); /* planes */ -    put_le16(pb, enc->bits_per_sample ? enc->bits_per_sample : 24); /* depth */ +    put_le16(pb, enc->bits_per_coded_sample ? enc->bits_per_coded_sample : 24); /* depth */      /* compression type */      put_le32(pb, enc->codec_tag);      put_le32(pb, enc->width * enc->height * 3); @@ -363,15 +363,15 @@ void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size)      codec->bit_rate = get_le32(pb) * 8;      codec->block_align = get_le16(pb);      if (size == 14) {  /* We're dealing with plain vanilla WAVEFORMAT */ -        codec->bits_per_sample = 8; +        codec->bits_per_coded_sample = 8;      }else -        codec->bits_per_sample = get_le16(pb); +        codec->bits_per_coded_sample = get_le16(pb);      if (size >= 18) {  /* We're obviously dealing with WAVEFORMATEX */          int cbSize = get_le16(pb); /* cbSize */          size -= 18;          cbSize = FFMIN(size, cbSize);          if (cbSize >= 22 && id == 0xfffe) { /* WAVEFORMATEXTENSIBLE */ -            codec->bits_per_sample = get_le16(pb); +            codec->bits_per_coded_sample = get_le16(pb);              get_le32(pb); /* dwChannelMask */              id = get_le32(pb); /* 4 first bytes of GUID */              url_fskip(pb, 12); /* skip end of GUID */ @@ -389,7 +389,7 @@ void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size)          if (size > 0)              url_fskip(pb, size);      } -    codec->codec_id = wav_codec_get_id(id, codec->bits_per_sample); +    codec->codec_id = wav_codec_get_id(id, codec->bits_per_coded_sample);  } | 
