[FFmpeg-devel] [PATCH]Set dfa dar to 4/3
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Apr 8 11:46:22 CEST 2013
Hi!
Attached patch fixes the aspect for the new LOGO sample in
game-formats/chronomaster-dfa/ here.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/dfa.c b/libavformat/dfa.c
index 8cf2f24..7467cbd 100644
--- a/libavformat/dfa.c
+++ b/libavformat/dfa.c
@@ -61,6 +61,8 @@ static int dfa_read_header(AVFormatContext *s)
avpriv_set_pts_info(st, 24, mspf, 1000);
avio_skip(pb, 128 - 16); // padding
st->duration = frames;
+ av_reduce(&st->sample_aspect_ratio.num, &st->sample_aspect_ratio.den,
+ 4 * st->codec->height, 3 * st->codec->width, INT_MAX);
return 0;
}
More information about the ffmpeg-devel
mailing list