Mercurial > libavformat.hg
comparison nuv.c @ 3598:50106b4dd6ba libavformat
Fix handling of old nuv files where an aspect of 1 actually means 4/3
Patch by elupus (elupus ecce se)
author | reimar |
---|---|
date | Fri, 25 Jul 2008 04:10:32 +0000 |
parents | cfa94f80be53 |
children | 27537074f2a9 |
comparison
equal
deleted
inserted
replaced
3597:cfa94f80be53 | 3598:50106b4dd6ba |
---|---|
135 get_le32(pb); // unused, "desiredwidth" | 135 get_le32(pb); // unused, "desiredwidth" |
136 get_le32(pb); // unused, "desiredheight" | 136 get_le32(pb); // unused, "desiredheight" |
137 get_byte(pb); // 'P' == progressive, 'I' == interlaced | 137 get_byte(pb); // 'P' == progressive, 'I' == interlaced |
138 url_fskip(pb, 3); // padding | 138 url_fskip(pb, 3); // padding |
139 aspect = av_int2dbl(get_le64(pb)); | 139 aspect = av_int2dbl(get_le64(pb)); |
140 if (aspect > 0.9999 && aspect < 1.0001) | |
141 aspect = 4.0 / 3.0; | |
140 fps = av_int2dbl(get_le64(pb)); | 142 fps = av_int2dbl(get_le64(pb)); |
141 | 143 |
142 // number of packets per stream type, -1 means unknown, e.g. streaming | 144 // number of packets per stream type, -1 means unknown, e.g. streaming |
143 v_packs = get_le32(pb); | 145 v_packs = get_le32(pb); |
144 a_packs = get_le32(pb); | 146 a_packs = get_le32(pb); |