From 62a43be058820655b33ec131f88485614658ac5a Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Thu, 12 Apr 2018 16:29:18 +0200 Subject: step --- src/picture.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/picture.c b/src/picture.c index 2b30d99..6af6da1 100644 --- a/src/picture.c +++ b/src/picture.c @@ -229,22 +229,24 @@ int rc; case VAProfileMPEG2Main: printf("%s: MPEG2 profile\n", __func__); // obj_context->mpeg2_frame_hdr.slice_pos = 0; - frame_header.slice_len = obj_surface->slice_offset * 8; + frame_header->slice_len = obj_surface->slice_offset * 8; out_buf.m.planes[0].bytesused = obj_surface->slice_offset; printf("%s: ending on %d bytes used\n", __func__, out_buf.m.planes[0].bytesused); ctrl.id = V4L2_CID_MPEG_VIDEO_MPEG2_FRAME_HDR; - ctrl.ptr = &obj_context->mpeg2_frame_hdr; - ctrl.size = sizeof(obj_context->mpeg2_frame_hdr); + ctrl.ptr = frame_header; + ctrl.size = sizeof(struct v4l2_ctrl_mpeg2_frame_hdr); break; case VAProfileMPEG4Simple: case VAProfileMPEG4AdvancedSimple: case VAProfileMPEG4Main: printf("%s: MPEG4 profile\n", __func__); +/* out_buf.m.planes[0].bytesused = obj_context->mpeg4_frame_hdr.slice_len/8; ctrl.id = V4L2_CID_MPEG_VIDEO_MPEG4_FRAME_HDR; ctrl.ptr = &obj_context->mpeg4_frame_hdr; ctrl.size = sizeof(obj_context->mpeg4_frame_hdr); +*/ break; default: printf("%s: MPEG2 dummy/fallback non-profile\n", __func__); -- cgit v1.2.3