comparison ac3_parser.c @ 6566:9b8a881e871c libavcodec

Corrections of errors in aac_ac3_parser
author bwolowiec
date Mon, 07 Apr 2008 20:54:08 +0000
parents 013def14c931
children 5e7c69ebc019
comparison
equal deleted inserted replaced
6565:013def14c931 6566:9b8a881e871c
128 { 128 {
129 int err; 129 int err;
130 uint64_t tmp = be2me_64(state); 130 uint64_t tmp = be2me_64(state);
131 AC3HeaderInfo hdr; 131 AC3HeaderInfo hdr;
132 132
133 err = ff_ac3_parse_header((uint8_t *)&tmp, &hdr); 133 err = ff_ac3_parse_header(((uint8_t *)&tmp)+8-AC3_HEADER_SIZE, &hdr);
134 134
135 if(err < 0) 135 if(err < 0)
136 return 0; 136 return 0;
137 137
138 hdr_info->sample_rate = hdr.sample_rate; 138 hdr_info->sample_rate = hdr.sample_rate;