Mercurial > libavformat.hg
comparison mov.c @ 438:b3fdae08c556 libavformat
libavformat/mov.c fails with gcc 2.95.3 patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
author | michael |
---|---|
date | Mon, 12 Apr 2004 17:40:31 +0000 |
parents | fe91c780d26a |
children | aeb69a5f3756 |
comparison
equal
deleted
inserted
replaced
437:50bae308f71e | 438:b3fdae08c556 |
---|---|
1004 st->codec.bits_per_sample = get_be16(pb); /* bits per sample */ | 1004 st->codec.bits_per_sample = get_be16(pb); /* bits per sample */ |
1005 get_be32(pb); | 1005 get_be32(pb); |
1006 st->codec.sample_rate = get_be16(pb); /* sample rate, not always correct */ | 1006 st->codec.sample_rate = get_be16(pb); /* sample rate, not always correct */ |
1007 get_be16(pb); | 1007 get_be16(pb); |
1008 c->mp4=1; | 1008 c->mp4=1; |
1009 { | |
1009 MOV_atom_t a = { format, url_ftell(pb), size - (20 + 20 + 8) }; | 1010 MOV_atom_t a = { format, url_ftell(pb), size - (20 + 20 + 8) }; |
1010 mov_read_default(c, pb, a); | 1011 mov_read_default(c, pb, a); |
1012 } | |
1011 /* Get correct sample rate from extradata */ | 1013 /* Get correct sample rate from extradata */ |
1012 if(st->codec.extradata_size) { | 1014 if(st->codec.extradata_size) { |
1013 const int samplerate_table[] = { | 1015 const int samplerate_table[] = { |
1014 96000, 88200, 64000, 48000, 44100, 32000, | 1016 96000, 88200, 64000, 48000, 44100, 32000, |
1015 24000, 22050, 16000, 12000, 11025, 8000, | 1017 24000, 22050, 16000, 12000, 11025, 8000, |