Skip to content

Commit

Permalink
Workaround for FFmpeg streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjh89017 committed Nov 5, 2018
1 parent 6b6cab1 commit 8a69ce6
Showing 1 changed file with 22 additions and 0 deletions.
Expand Up @@ -466,6 +466,28 @@ static long v4l2_hdmi_do_ioctl(struct file *file, unsigned int cmd, void *arg)

break;
}

case VIDIOC_G_INPUT:
{
/* force set to index 0 */
__u32 *index = arg;
*index = 0;
ret = 0;
break;

}

case VIDIOC_ENUMINPUT:
{
/* empty resource */
struct v4l2_input *input = arg;

/* set only std which ffmpeg only use */
input->std = 0;

ret = 0;
break;
}
default:
HDMIRX_ERROR("Unknown ioctl TYPE(0x%x) NR(%u) SIZE(%u)",
_IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd));
Expand Down

0 comments on commit 8a69ce6

Please sign in to comment.