diff options
author | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-04-12 16:29:18 +0200 |
---|---|---|
committer | Paul Kocialkowski <paul.kocialkowski@bootlin.com> | 2018-04-12 16:29:18 +0200 |
commit | 62a43be058820655b33ec131f88485614658ac5a (patch) | |
tree | 89768dc6d8b4d2000b8b019bc6596028fd0739df | |
parent | 72af76cb9bfeddbbed6326a4fc2c89061e972e8e (diff) | |
download | libva-cedrus-62a43be058820655b33ec131f88485614658ac5a.tar.gz libva-cedrus-62a43be058820655b33ec131f88485614658ac5a.tar.bz2 libva-cedrus-62a43be058820655b33ec131f88485614658ac5a.zip |
step
-rw-r--r-- | src/picture.c | 8 |
1 files 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__); |