Commit 0573106d authored by jai_menon's avatar jai_menon

Update frame_width and frame_height based on the lowres value.

Fixes issues 1387, 1097 and probably some other lowres related problems.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20741 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1f4be30b
......@@ -2944,7 +2944,11 @@ static void opt_input_file(const char *filename)
frame_pix_fmt = enc->pix_fmt;
rfps = ic->streams[i]->r_frame_rate.num;
rfps_base = ic->streams[i]->r_frame_rate.den;
if(enc->lowres) enc->flags |= CODEC_FLAG_EMU_EDGE;
if(enc->lowres) {
enc->flags |= CODEC_FLAG_EMU_EDGE;
frame_height >>= enc->lowres;
frame_width >>= enc->lowres;
}
if(me_threshold)
enc->debug |= FF_DEBUG_MV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment