mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix bug #1302: Unsupported pixel format crash.
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
User johns
 | 
			
		||||
Date:
 | 
			
		||||
 | 
			
		||||
    Fix bug #1302: Unsupported pixel format crash.
 | 
			
		||||
    Fix the fix, when sillpicture is called in suspend mode.
 | 
			
		||||
    Fix crash, when sillpicture is called in suspend mode.
 | 
			
		||||
    Add workaround for zero width+height and ffmpeg >= 1.2.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								Todo
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Todo
									
									
									
									
									
								
							@@ -40,6 +40,7 @@ video:
 | 
			
		||||
    check start with 24Hz display rate
 | 
			
		||||
    crash with ffmpeg without vaapi and vdpau.
 | 
			
		||||
    still-picture of PES recordings should use VideoMpegEnqueue.
 | 
			
		||||
    convert PIX_FMT_... PixelFormat to new names AV_PIX_FMT_..., AVPixelFormat.
 | 
			
		||||
 | 
			
		||||
vdpau:
 | 
			
		||||
    software deinterlace path not working.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								video.c
									
									
									
									
									
								
							@@ -2311,6 +2311,7 @@ static int VaapiFindImageFormat(VaapiDecoder * decoder,
 | 
			
		||||
	    // intel: I420 is native format for MPEG-2 decoded surfaces
 | 
			
		||||
	    // intel: NV12 is native format for H.264 decoded surfaces
 | 
			
		||||
	case PIX_FMT_YUV420P:
 | 
			
		||||
	case PIX_FMT_YUVJ420P:
 | 
			
		||||
	    // fourcc = VA_FOURCC_YV12; // YVU
 | 
			
		||||
	    fourcc = VA_FOURCC('I', '4', '2', '0');	// YUV
 | 
			
		||||
	    break;
 | 
			
		||||
@@ -7583,6 +7584,7 @@ static void VdpauRenderFrame(VdpauDecoder * decoder,
 | 
			
		||||
	//
 | 
			
		||||
	switch (video_ctx->pix_fmt) {
 | 
			
		||||
	    case PIX_FMT_YUV420P:
 | 
			
		||||
	    case PIX_FMT_YUVJ420P:	// some streams produce this
 | 
			
		||||
		break;
 | 
			
		||||
	    case PIX_FMT_YUV422P:
 | 
			
		||||
	    case PIX_FMT_YUV444P:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user