You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	libavdevice: Fix the avfoundation device after switching to FFInputFormat
This was missed in b800327f4c.
Signed-off-by: Martin Storsjö <martin@martin.st>
			
			
This commit is contained in:
		| @@ -32,6 +32,7 @@ | |||||||
| #include "libavutil/pixdesc.h" | #include "libavutil/pixdesc.h" | ||||||
| #include "libavutil/opt.h" | #include "libavutil/opt.h" | ||||||
| #include "libavutil/avstring.h" | #include "libavutil/avstring.h" | ||||||
|  | #include "libavformat/demux.h" | ||||||
| #include "libavformat/internal.h" | #include "libavformat/internal.h" | ||||||
| #include "libavutil/internal.h" | #include "libavutil/internal.h" | ||||||
| #include "libavutil/parseutils.h" | #include "libavutil/parseutils.h" | ||||||
| @@ -1292,13 +1293,13 @@ static const AVClass avf_class = { | |||||||
|     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT, |     .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT, | ||||||
| }; | }; | ||||||
|  |  | ||||||
| const AVInputFormat ff_avfoundation_demuxer = { | const FFInputFormat ff_avfoundation_demuxer = { | ||||||
|     .name           = "avfoundation", |     .p.name         = "avfoundation", | ||||||
|     .long_name      = NULL_IF_CONFIG_SMALL("AVFoundation input device"), |     .p.long_name    = NULL_IF_CONFIG_SMALL("AVFoundation input device"), | ||||||
|  |     .p.flags        = AVFMT_NOFILE, | ||||||
|  |     .p.priv_class   = &avf_class, | ||||||
|     .priv_data_size = sizeof(AVFContext), |     .priv_data_size = sizeof(AVFContext), | ||||||
|     .read_header    = avf_read_header, |     .read_header    = avf_read_header, | ||||||
|     .read_packet    = avf_read_packet, |     .read_packet    = avf_read_packet, | ||||||
|     .read_close     = avf_close, |     .read_close     = avf_close, | ||||||
|     .flags          = AVFMT_NOFILE, |  | ||||||
|     .priv_class     = &avf_class, |  | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user