OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e90317
)
aspect stored in nuv files must be converted from display- to sample-aspect.
author
Joakim Plate
<elupus@ecce.se>
Thu, 24 Jul 2008 18:40:43 +0000
(18:40 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Thu, 24 Jul 2008 18:40:43 +0000
(18:40 +0000)
Patch by elupus (elupus ecce se)
Originally committed as revision 14375 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nuv.c
patch
|
blob
|
history
diff --git
a/libavformat/nuv.c
b/libavformat/nuv.c
index
995775d
..
c692cac
100644
(file)
--- a/
libavformat/nuv.c
+++ b/
libavformat/nuv.c
@@
-156,7
+156,7
@@
static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
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