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:
8a4f816
)
Ensure that muxer and encoder aspect ratios match. So no
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Sep 2008 12:37:38 +0000
(12:37 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 19 Sep 2008 12:37:38 +0000
(12:37 +0000)
invalid files are generated.
Originally committed as revision 15367 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index c1245074461f7287569d0a0ef1b22e94696ac8d6..8938c499f550c35a67e6c97e5316af534508017b 100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-2457,6
+2457,10
@@
int av_write_header(AVFormatContext *s)
av_log(s, AV_LOG_ERROR, "dimensions not set\n");
return -1;
}
+ if(av_cmp_q(st->sample_aspect_ratio, st->codec->sample_aspect_ratio)){
+ av_log(s, AV_LOG_ERROR, "Aspect ratio mismatch between encoder and muxer layer\n");
+ return -1;
+ }
break;
}