mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 14:06:27 +08:00
Change the value of bit/pixel from channels to 8*channels because videos encoded
by cap_mjpeg_encoder.cpp don't play on windows media player. Issue number #8113
This commit is contained in:
parent
9053839282
commit
a41d877fe6
@ -720,7 +720,7 @@ public:
|
||||
strm.putInt(height);
|
||||
strm.putShort(1); // planes (1 means interleaved data (after decompression))
|
||||
|
||||
strm.putShort(channels); // bits per pixel
|
||||
strm.putShort(8 * channels); // bits per pixel
|
||||
strm.putInt(fourCC('M', 'J', 'P', 'G'));
|
||||
strm.putInt(width * height * channels);
|
||||
strm.putInt(0);
|
||||
|
Loading…
Reference in New Issue
Block a user