mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix libav compatibility.
This commit is contained in:
		
							
								
								
									
										7
									
								
								codec.c
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								codec.c
									
									
									
									
									
								
							| @@ -128,7 +128,7 @@ static int Codec_get_buffer(AVCodecContext * video_ctx, AVFrame * frame) | ||||
| 	struct vdpau_render_state *vrs; | ||||
|  | ||||
| 	surface = VideoGetSurface(decoder->HwDecoder); | ||||
| 	vrs = av_calloc(1, sizeof(struct vdpau_render_state)); | ||||
| 	vrs = av_mallocz(sizeof(struct vdpau_render_state)); | ||||
| 	vrs->surface = surface; | ||||
|  | ||||
| 	//Debug(3, "codec: use surface %#010x\n", surface); | ||||
| @@ -229,6 +229,11 @@ static void Codec_release_buffer(AVCodecContext * video_ctx, AVFrame * frame) | ||||
|     return avcodec_default_release_buffer(video_ctx, frame); | ||||
| } | ||||
|  | ||||
| /// libav: compatibility hack | ||||
| #ifndef AV_NUM_DATA_POINTERS | ||||
| #define AV_NUM_DATA_POINTERS	4 | ||||
| #endif | ||||
|  | ||||
| /** | ||||
| **	Draw a horizontal band. | ||||
| ** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user