PD#150218: amlvideo: set omx output buffer size to compWidth*compHeight
Change-Id: I69ff2e5defb8344cd4aec05582f4696faa0abe7f
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
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,