mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
edge fix
Originally committed as revision 2053 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6674a12696
commit
cf48e6f8dc
@ -809,13 +809,8 @@ static inline void get_limits(MpegEncContext *s, int *range, int *xmin, int *ymi
|
|||||||
if (s->unrestricted_mv) {
|
if (s->unrestricted_mv) {
|
||||||
*xmin = -16;
|
*xmin = -16;
|
||||||
*ymin = -16;
|
*ymin = -16;
|
||||||
if(s->avctx->codec->id!=CODEC_ID_MPEG4){
|
|
||||||
*xmax = s->mb_width*16;
|
*xmax = s->mb_width*16;
|
||||||
*ymax = s->mb_height*16;
|
*ymax = s->mb_height*16;
|
||||||
}else {
|
|
||||||
*xmax = s->width;
|
|
||||||
*ymax = s->height;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
*xmin = 0;
|
*xmin = 0;
|
||||||
*ymin = 0;
|
*ymin = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user