[FFmpeg-cvslog] r14375 - trunk/libavformat/nuv.c
reimar
subversion
Thu Jul 24 20:40:43 CEST 2008
Author: reimar
Date: Thu Jul 24 20:40:43 2008
New Revision: 14375
Log:
aspect stored in nuv files must be converted from display- to sample-aspect.
Patch by elupus (elupus ecce se)
Modified:
trunk/libavformat/nuv.c
Modified: trunk/libavformat/nuv.c
==============================================================================
--- trunk/libavformat/nuv.c (original)
+++ trunk/libavformat/nuv.c Thu Jul 24 20:40:43 2008
@@ -156,7 +156,7 @@ static int nuv_header(AVFormatContext *s
vst->codec->width = width;
vst->codec->height = height;
vst->codec->bits_per_sample = 10;
- vst->codec->sample_aspect_ratio = av_d2q(aspect, 10000);
+ vst->codec->sample_aspect_ratio = av_d2q(aspect * height / width, 10000);
vst->r_frame_rate = av_d2q(fps, 60000);
av_set_pts_info(vst, 32, 1, 1000);
} else
More information about the ffmpeg-cvslog
mailing list