avcodec/options: add missing FF_API_COPY_CONTEXT checks
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		
							parent
							
								
									bd52b41444
								
							
						
					
					
						commit
						0191f2d29c
					
				| @ -327,6 +327,7 @@ static const AVOption frame_options[]={ | |||||||
| {NULL}, | {NULL}, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | #if FF_API_COPY_CONTEXT | ||||||
| static const AVClass av_frame_class = { | static const AVClass av_frame_class = { | ||||||
|     .class_name              = "AVFrame", |     .class_name              = "AVFrame", | ||||||
|     .item_name               = NULL, |     .item_name               = NULL, | ||||||
| @ -338,6 +339,7 @@ const AVClass *avcodec_get_frame_class(void) | |||||||
| { | { | ||||||
|     return &av_frame_class; |     return &av_frame_class; | ||||||
| } | } | ||||||
|  | #endif | ||||||
| 
 | 
 | ||||||
| #define SROFFSET(x) offsetof(AVSubtitleRect,x) | #define SROFFSET(x) offsetof(AVSubtitleRect,x) | ||||||
| 
 | 
 | ||||||
| @ -352,6 +354,7 @@ static const AVOption subtitle_rect_options[]={ | |||||||
| {NULL}, | {NULL}, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | #if FF_API_COPY_CONTEXT | ||||||
| static const AVClass av_subtitle_rect_class = { | static const AVClass av_subtitle_rect_class = { | ||||||
|     .class_name             = "AVSubtitleRect", |     .class_name             = "AVSubtitleRect", | ||||||
|     .item_name              = NULL, |     .item_name              = NULL, | ||||||
| @ -363,3 +366,4 @@ const AVClass *avcodec_get_subtitle_rect_class(void) | |||||||
| { | { | ||||||
|     return &av_subtitle_rect_class; |     return &av_subtitle_rect_class; | ||||||
| } | } | ||||||
|  | #endif | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user