comparison aac_adtstoasc_bsf.c @ 9891:7ad7d4094d1f libavcodec

Rename ff_log_missing_feature() to av_log_missing_feature().
author rbultje
date Mon, 29 Jun 2009 19:07:04 +0000
parents b9563486a234
children d5339724d6ce
comparison
equal deleted inserted replaced
9890:956adcb2b00d 9891:7ad7d4094d1f
59 av_log(avctx, AV_LOG_ERROR, "Error parsing ADTS frame header!\n"); 59 av_log(avctx, AV_LOG_ERROR, "Error parsing ADTS frame header!\n");
60 return -1; 60 return -1;
61 } 61 }
62 62
63 if (!hdr.crc_absent && hdr.num_aac_frames > 1) { 63 if (!hdr.crc_absent && hdr.num_aac_frames > 1) {
64 ff_log_missing_feature(avctx, "Multiple RDBs per frame with CRC is", 0); 64 av_log_missing_feature(avctx, "Multiple RDBs per frame with CRC is", 0);
65 return -1; 65 return -1;
66 } 66 }
67 67
68 buf += AAC_ADTS_HEADER_SIZE + 2*!hdr.crc_absent; 68 buf += AAC_ADTS_HEADER_SIZE + 2*!hdr.crc_absent;
69 buf_size -= AAC_ADTS_HEADER_SIZE + 2*!hdr.crc_absent; 69 buf_size -= AAC_ADTS_HEADER_SIZE + 2*!hdr.crc_absent;
72 int pce_size = 0; 72 int pce_size = 0;
73 uint8_t pce_data[MAX_PCE_SIZE]; 73 uint8_t pce_data[MAX_PCE_SIZE];
74 if (!hdr.chan_config) { 74 if (!hdr.chan_config) {
75 init_get_bits(&gb, buf, buf_size); 75 init_get_bits(&gb, buf, buf_size);
76 if (get_bits(&gb, 3) != 5) { 76 if (get_bits(&gb, 3) != 5) {
77 ff_log_missing_feature(avctx, "PCE based channel configuration, where the PCE is not the first syntax element is", 0); 77 av_log_missing_feature(avctx, "PCE based channel configuration, where the PCE is not the first syntax element is", 0);
78 return -1; 78 return -1;
79 } 79 }
80 init_put_bits(&pb, pce_data, MAX_PCE_SIZE); 80 init_put_bits(&pb, pce_data, MAX_PCE_SIZE);
81 pce_size = ff_copy_pce_data(&pb, &gb)/8; 81 pce_size = ff_copy_pce_data(&pb, &gb)/8;
82 flush_put_bits(&pb); 82 flush_put_bits(&pb);