Mercurial > libavcodec.hg
comparison apedec.c @ 7823:4525dcd81357 libavcodec
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!
author | michael |
---|---|
date | Mon, 08 Sep 2008 14:24:59 +0000 |
parents | 20b105281e87 |
children | c15b1e83d27d |
comparison
equal
deleted
inserted
replaced
7822:67cfe4983e6d | 7823:4525dcd81357 |
---|---|
169 | 169 |
170 if (avctx->extradata_size != 6) { | 170 if (avctx->extradata_size != 6) { |
171 av_log(avctx, AV_LOG_ERROR, "Incorrect extradata\n"); | 171 av_log(avctx, AV_LOG_ERROR, "Incorrect extradata\n"); |
172 return -1; | 172 return -1; |
173 } | 173 } |
174 if (avctx->bits_per_sample != 16) { | 174 if (avctx->bits_per_coded_sample != 16) { |
175 av_log(avctx, AV_LOG_ERROR, "Only 16-bit samples are supported\n"); | 175 av_log(avctx, AV_LOG_ERROR, "Only 16-bit samples are supported\n"); |
176 return -1; | 176 return -1; |
177 } | 177 } |
178 if (avctx->channels > 2) { | 178 if (avctx->channels > 2) { |
179 av_log(avctx, AV_LOG_ERROR, "Only mono and stereo is supported\n"); | 179 av_log(avctx, AV_LOG_ERROR, "Only mono and stereo is supported\n"); |