}
int32_t SoftFFmpegVideo::decodeVideo() {
- int len = 0, err = 0;
+ int err = 0;
int gotPic = false;
int32_t ret = ERR_OK;
List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex);
uint32_t bufferWidth = outputBufferWidth();
uint32_t bufferHeight = outputBufferHeight();
+#if DEBUG_FRM
uint32_t frameWidth = mFrame->width;
uint32_t frameHeight = mFrame->height;
+#endif
data[0] = dst;
data[1] = dst + bufferWidth * bufferHeight;
linesize[1] = bufferWidth / 2;
linesize[2] = bufferWidth / 2;
+#if DEBUG_FRM
ALOGD("drainOneOutputBuffer: frame_width=%d frame_height=%d buffer_width=%d buffer_height=%d ctx_width=%d ctx_height=%d mIsAdaptive=%d",
frameWidth, frameHeight, bufferWidth, bufferHeight, mCtx->width, mCtx->height, mIsAdaptive);
+#endif
int sws_flags = SWS_BICUBIC;
mImgConvertCtx = sws_getCachedContext(mImgConvertCtx,