Skip to content
Snippets Groups Projects
Commit 4c8e5dfc authored by Joakim Plate's avatar Joakim Plate Committed by Reimar Döffinger
Browse files

Fix handling of old nuv files where an aspect of 1 actually means 4/3

Patch by elupus (elupus ecce se)

Originally committed as revision 14382 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9296f5d8
No related branches found
No related tags found
No related merge requests found
...@@ -137,6 +137,8 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) { ...@@ -137,6 +137,8 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
get_byte(pb); // 'P' == progressive, 'I' == interlaced get_byte(pb); // 'P' == progressive, 'I' == interlaced
url_fskip(pb, 3); // padding url_fskip(pb, 3); // padding
aspect = av_int2dbl(get_le64(pb)); aspect = av_int2dbl(get_le64(pb));
if (aspect > 0.9999 && aspect < 1.0001)
aspect = 4.0 / 3.0;
fps = av_int2dbl(get_le64(pb)); fps = av_int2dbl(get_le64(pb));
// number of packets per stream type, -1 means unknown, e.g. streaming // number of packets per stream type, -1 means unknown, e.g. streaming
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment