comparison asf.c @ 3908:1d3d17de20ba libavformat

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 27537074f2a9
children 4fd67f05bad9
comparison
equal deleted inserted replaced
3907:7c71e9cabf0e 3908:1d3d17de20ba
313 sizeX= get_le32(pb); /* size */ 313 sizeX= get_le32(pb); /* size */
314 st->codec->width = get_le32(pb); 314 st->codec->width = get_le32(pb);
315 st->codec->height = get_le32(pb); 315 st->codec->height = get_le32(pb);
316 /* not available for asf */ 316 /* not available for asf */
317 get_le16(pb); /* panes */ 317 get_le16(pb); /* panes */
318 st->codec->bits_per_sample = get_le16(pb); /* depth */ 318 st->codec->bits_per_coded_sample = get_le16(pb); /* depth */
319 tag1 = get_le32(pb); 319 tag1 = get_le32(pb);
320 url_fskip(pb, 20); 320 url_fskip(pb, 20);
321 // av_log(NULL, AV_LOG_DEBUG, "size:%d tsize:%d sizeX:%d\n", size, total_size, sizeX); 321 // av_log(NULL, AV_LOG_DEBUG, "size:%d tsize:%d sizeX:%d\n", size, total_size, sizeX);
322 size= sizeX; 322 size= sizeX;
323 if (size > 40) { 323 if (size > 40) {
327 } 327 }
328 328
329 /* Extract palette from extradata if bpp <= 8 */ 329 /* Extract palette from extradata if bpp <= 8 */
330 /* This code assumes that extradata contains only palette */ 330 /* This code assumes that extradata contains only palette */
331 /* This is true for all paletted codecs implemented in ffmpeg */ 331 /* This is true for all paletted codecs implemented in ffmpeg */
332 if (st->codec->extradata_size && (st->codec->bits_per_sample <= 8)) { 332 if (st->codec->extradata_size && (st->codec->bits_per_coded_sample <= 8)) {
333 st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl)); 333 st->codec->palctrl = av_mallocz(sizeof(AVPaletteControl));
334 #ifdef WORDS_BIGENDIAN 334 #ifdef WORDS_BIGENDIAN
335 for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++) 335 for (i = 0; i < FFMIN(st->codec->extradata_size, AVPALETTE_SIZE)/4; i++)
336 st->codec->palctrl->palette[i] = bswap_32(((uint32_t*)st->codec->extradata)[i]); 336 st->codec->palctrl->palette[i] = bswap_32(((uint32_t*)st->codec->extradata)[i]);
337 #else 337 #else