amlvideo: set omx output buffer size to compWidth*compHeight

PD#150218: amlvideo: set omx output buffer size to compWidth*compHeight

Change-Id: I69ff2e5defb8344cd4aec05582f4696faa0abe7f
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
This commit is contained in:
Yao.Liu
2017-09-05 17:05:37 +08:00
committed by Jianxin Pan
parent e2aece4a0a
commit ed85ef9aa5

View File

@@ -538,8 +538,14 @@ static int vidioc_dqbuf(struct file *file, void *priv, struct v4l2_buffer *p)
p->timestamp.tv_sec = pts_us64 >> 32;
p->timestamp.tv_usec = pts_us64 & 0xFFFFFFFF;
dev->last_pts_us64 = pts_us64;
p->timecode.type = dev->vf->width;
p->timecode.flags = dev->vf->height;
if ((dev->vf->type & VIDTYPE_COMPRESS) != 0) {
p->timecode.type = dev->vf->compWidth;
p->timecode.flags = dev->vf->compHeight;
} else {
p->timecode.type = dev->vf->width;
p->timecode.flags = dev->vf->height;
}
vf_notify_receiver(
dev->vf_provider_name,