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:
d7dc90e
)
Do not reject odd width/height.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 25 May 2008 13:31:07 +0000
(13:31 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 25 May 2008 13:31:07 +0000
(13:31 +0000)
Fixes issue371.
Originally committed as revision 13377 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpeg12.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpeg12.c
b/libavcodec/mpeg12.c
index 86e1334a24b3ea65a3b5b3472a4506f17d92b103..8133b1d267cade912f41b13abc31b8533612c38d 100644
(file)
--- a/
libavcodec/mpeg12.c
+++ b/
libavcodec/mpeg12.c
@@
-1966,8
+1966,7
@@
static int mpeg1_decode_sequence(AVCodecContext *avctx,
width = get_bits(&s->gb, 12);
height = get_bits(&s->gb, 12);
- if (width <= 0 || height <= 0 ||
- (width % 2) != 0 || (height % 2) != 0)
+ if (width <= 0 || height <= 0)
return -1;
s->aspect_ratio_info= get_bits(&s->gb, 4);
if (s->aspect_ratio_info == 0) {