[FFmpeg-devel] Adding AVClass in v4l2enc

Clément Bœsch u at pkh.me
Thu Jul 31 19:17:40 CEST 2014


On Thu, Jul 31, 2014 at 09:17:20PM +0530, Anshul Maheshwari wrote:
> Because of no AVClass.I was getting segmentation fault.
> 
> FFmpeg Cmd that I was using is given below.
> ./ffmpeg -re -i ~/test_videos/dvbsubtest.ts -f v4l2 /dev/video0
> 
> -Anshul

> From df27814e31a29624f69b23e9790ae6ab42817d8b Mon Sep 17 00:00:00 2001
> From: Anshul Maheswhwari <anshul.ffmpeg at gmail.com>
> Date: Thu, 31 Jul 2014 20:59:59 +0530
> Subject: [PATCH] v4l2enc: adding AVClass
> 
> ---
>  libavdevice/v4l2enc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavdevice/v4l2enc.c b/libavdevice/v4l2enc.c
> index efe08b5..c9f8d92 100644
> --- a/libavdevice/v4l2enc.c
> +++ b/libavdevice/v4l2enc.c
> @@ -22,6 +22,7 @@
>  #include "avdevice.h"
>  
>  typedef struct {
> +    AVClass *class;
>      int fd;
>  } V4L2Context;
>  

Note: this looks like a regression from f607767d. I quickly checked ALSA,
OSS and sndio which might have been affected by the issue but they seem
fine.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140731/7272036d/attachment.asc>


More information about the ffmpeg-devel mailing list