Mercurial > libavcodec.hg
comparison mjpeg.c @ 4852:8b92d313409d libavcodec
fix playback of odd_height.mov
this isnt the most beautifull solution but at least it works independant of the
random height in mov and it doesnt add any secholes
author | michael |
---|---|
date | Sat, 14 Apr 2007 22:22:34 +0000 |
parents | ba6fd4b884b6 |
children | df386603730b |
comparison
equal
deleted
inserted
replaced
4851:ba6fd4b884b6 | 4852:8b92d313409d |
---|---|
1122 return -1; | 1122 return -1; |
1123 } | 1123 } |
1124 | 1124 |
1125 height = get_bits(&s->gb, 16); | 1125 height = get_bits(&s->gb, 16); |
1126 width = get_bits(&s->gb, 16); | 1126 width = get_bits(&s->gb, 16); |
1127 | |
1128 //HACK for odd_height.mov | |
1129 if(s->interlaced && s->width == width && s->height == height + 1) | |
1130 height= s->height; | |
1127 | 1131 |
1128 av_log(s->avctx, AV_LOG_DEBUG, "sof0: picture: %dx%d\n", width, height); | 1132 av_log(s->avctx, AV_LOG_DEBUG, "sof0: picture: %dx%d\n", width, height); |
1129 if(avcodec_check_dimensions(s->avctx, width, height)) | 1133 if(avcodec_check_dimensions(s->avctx, width, height)) |
1130 return -1; | 1134 return -1; |
1131 | 1135 |