projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed16f91
)
set video_enc->sample_aspect_ratio to fix stream copy
author
Wolfram Gloger
<wmglo@dent.med.uni-muenchen.de>
Sun, 28 Sep 2008 23:24:32 +0000
(23:24 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 28 Sep 2008 23:24:32 +0000
(23:24 +0000)
patch by Wolfram Gloger wmglo _at_ dent.med.uni-muenchen _dot_ de
Originally committed as revision 15457 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index 73ce5162a5ff1dd190e12046b6a5c5b511510f1b..f4ab88fe5420f2a17fb609d3e6c53716c3a95135 100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-2972,6
+2972,7
@@
static void new_video_stream(AVFormatContext *oc)
if (video_stream_copy) {
st->stream_copy = 1;
video_enc->codec_type = CODEC_TYPE_VIDEO;
+ video_enc->sample_aspect_ratio =
st->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255);
} else {
const char *p;