OSDN Git Service

SoftFFmpegVideo: fix adpative video scaling problem
authorMichael Goffioul <michael.goffioul@gmail.com>
Sun, 3 Sep 2017 00:24:00 +0000 (08:24 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 9 Oct 2017 17:48:13 +0000 (01:48 +0800)
commitda46d3e6fa26bc9d046d37317236a38f60fb1959
tree94b6e4ee4dcf921052cdf2ddea914c751289f2c8
parent3b7a4b8f090965c38283e6d882ceb5620ec275d7
SoftFFmpegVideo: fix adpative video scaling problem

The way I understand it is that the codec is not supposed to scale the
video frames to the buffer size. In case of adpative playback, the frames
may be smaller than the buffer, which corresponds to the max possible
frame size in the adaptive stream.

The patch also drops fiddling with the cropping attributes. I'm not sure
what was the purpose, but I couldn't find equivalent in other sw codecs
like avcdec or mpeg2dec, so I just dropped that and mimiced what the
other sw codecs are doing.
omx/SoftFFmpegVideo.cpp