]> www.infradead.org Git - users/willy/linux.git/commitdiff
Merge remote-tracking branch 'v4l-dvb/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Dec 2018 00:57:50 +0000 (11:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 10 Dec 2018 00:57:50 +0000 (11:57 +1100)
12 files changed:
1  2 
Documentation/devicetree/bindings/media/cedrus.txt
Documentation/media/uapi/v4l/extended-controls.rst
MAINTAINERS
drivers/media/common/videobuf2/videobuf2-core.c
drivers/media/common/videobuf2/videobuf2-v4l2.c
drivers/media/platform/vicodec/vicodec-core.c
drivers/media/platform/vivid/vivid-vbi-cap.c
drivers/media/platform/vivid/vivid-vid-cap.c
drivers/media/platform/vivid/vivid-vid-out.c
drivers/media/v4l2-core/v4l2-ctrls.c
drivers/staging/media/sunxi/cedrus/cedrus_hw.c
include/uapi/linux/videodev2.h

diff --cc MAINTAINERS
Simple merge
index 13fb69c58967d0dbf527c4e0f39653410550da5d,2b7daff634257c9e135b4a96da19d1b8da63e3ca..0d7876f5acf0dc132443d123cf345ae44dc7274a
@@@ -997,23 -1006,14 +1006,21 @@@ static int vicodec_start_streaming(stru
  
        q_data->sequence = 0;
  
 -      if (!V4L2_TYPE_IS_OUTPUT(q->type))
 +      if (!V4L2_TYPE_IS_OUTPUT(q->type)) {
 +              if (!ctx->is_enc) {
 +                      state->width = q_data->width;
 +                      state->height = q_data->height;
 +              }
                return 0;
 +      }
  
 -      state->width = q_data->width;
 -      state->height = q_data->height;
 +      if (ctx->is_enc) {
 +              state->width = q_data->width;
 +              state->height = q_data->height;
 +      }
        state->ref_frame.width = state->ref_frame.height = 0;
-       state->ref_frame.luma = kvmalloc(size + 2 * size / chroma_div,
-                                        GFP_KERNEL);
-       ctx->comp_max_size = size + 2 * size / chroma_div +
-                            sizeof(struct fwht_cframe_hdr);
+       state->ref_frame.luma = kvmalloc(total_planes_size, GFP_KERNEL);
+       ctx->comp_max_size = total_planes_size + sizeof(struct fwht_cframe_hdr);
        state->compressed_frame = kvmalloc(ctx->comp_max_size, GFP_KERNEL);
        if (!state->ref_frame.luma || !state->compressed_frame) {
                kvfree(state->ref_frame.luma);
Simple merge
Simple merge