2017-11-02 13:42 GMT+01:00 Felix Matouschek <fe...@matouschek.org>: > Hello, > > I've written an indev for Android devices to allow capturing their builtin > cameras. > What needs to be done to merge this? > > Greetings, > Felix > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel >
Looking forrward to this to be included. Just one note: + if (ctx->video_device_number < camera_ids->numCameras) { + ctx->camera_id = av_strdup( + camera_ids->cameraIds[ctx->video_device_number]); + } else { + av_log(avctx, AV_LOG_ERROR, "No camera with number %d available.\n", + ctx->video_device_number); + return AVERROR(ENXIO); + } some devices have cameras which are unlisted - this condition makes them unusable. -- S pozdravom / Best regards Daniel Kucera. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel