We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba57594 commit 78610b8Copy full SHA for 78610b8
1 file changed
drivers/video/v4l2_m2m.c
@@ -374,6 +374,7 @@ static int codec_querybuf(FAR struct file *filep,
374
return -EINVAL;
375
}
376
377
+ memset(&format, 0, sizeof(format));
378
if (V4L2_TYPE_IS_OUTPUT(buf->type))
379
{
380
bufsize = CODEC_OUTPUT_G_BUFSIZE(cmng->codec, cfile->priv);
@@ -468,6 +469,7 @@ static int codec_qbuf(FAR struct file *filep,
468
469
return -EAGAIN;
470
471
472
473
474
475
CODEC_OUTPUT_G_FMT(cmng->codec, cfile->priv, &format);
@@ -575,6 +577,7 @@ static int codec_dqbuf(FAR struct file *filep,
575
577
576
578
579
580
581
582
583
0 commit comments