Skip to content

Commit 62abd18

Browse files
Som QinMichaIng
authored andcommitted
Media:Wave5: Allocate more linear buffer to avoid block in gst-play
Signed-off-by: Som Qin <som.qin@starfivetech.com>
1 parent 3a53f33 commit 62abd18

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,7 @@ static void wave5_vpu_dec_finish_decode(struct vpu_instance *inst)
345345
((stride / 2) * (height / 2)));
346346
}
347347

348-
if (inst->timestamp) {
349-
dst_buf->vb2_buf.timestamp = inst->timestamp;
350-
} else {
351-
dst_buf->vb2_buf.timestamp = inst->timestamp_cnt++ * inst->codec_info->dec_info.initial_info.ns_per_frame;
352-
}
348+
dst_buf->vb2_buf.timestamp = inst->timestamp_cnt++ * inst->codec_info->dec_info.initial_info.ns_per_frame;
353349

354350
dst_buf->field = V4L2_FIELD_NONE;
355351
v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE);
@@ -897,6 +893,7 @@ static int wave5_vpu_dec_queue_setup(struct vb2_queue *q, unsigned int *num_buff
897893
//if (*num_buffers > inst->min_dst_buf_count &&
898894
// *num_buffers < WAVE5_MAX_FBS)
899895
// inst->dst_buf_count = *num_buffers;
896+
inst->dst_buf_count += 2;
900897

901898
*num_buffers = inst->dst_buf_count;
902899
non_linear_num = inst->dst_buf_count;

0 commit comments

Comments
 (0)