mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
use original image type (8-bit grayscale or 24-bit RGB) in the case of RAW video (ticket #782)
This commit is contained in:
parent
ec97683ddf
commit
873b72edd9
@ -1270,6 +1270,8 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc,
|
||||
bitrate_scale = 128;
|
||||
break;
|
||||
case CODEC_ID_RAWVIDEO:
|
||||
codec_pix_fmt = input_pix_fmt;
|
||||
break;
|
||||
default:
|
||||
// good for lossy formats, MPEG, etc.
|
||||
codec_pix_fmt = PIX_FMT_YUV420P;
|
||||
|
Loading…
Reference in New Issue
Block a user