Skip to content

Commit ce3c668

Browse files
authored
Merge pull request #3882 from cudawarped:cudacodec_videowriter_h265_quicktime_compatibility
`cudacodec` - VideoWriter h265 QuickTime compatibility
2 parents 350b7d5 + 633c1a4 commit ce3c668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cudacodec/src/video_writer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class FFmpegVideoWriter : public EncoderCallback
8282
FFmpegVideoWriter::FFmpegVideoWriter(const String& fileName, const Codec codec, const int fps, const Size sz, const int idrPeriod) {
8383
if (!videoio_registry::hasBackend(CAP_FFMPEG))
8484
CV_Error(Error::StsNotImplemented, "FFmpeg backend not found");
85-
const int fourcc = codec == Codec::H264 ? cv::VideoWriter::fourcc('a', 'v', 'c', '1') : cv::VideoWriter::fourcc('h', 'e', 'v', '1');
85+
const int fourcc = codec == Codec::H264 ? cv::VideoWriter::fourcc('a', 'v', 'c', '1') : cv::VideoWriter::fourcc('h', 'v', 'c', '1');
8686
writer.open(fileName, fourcc, fps, sz, { VideoWriterProperties::VIDEOWRITER_PROP_RAW_VIDEO, 1, VideoWriterProperties::VIDEOWRITER_PROP_KEY_INTERVAL, idrPeriod });
8787
if (!writer.isOpened())
8888
CV_Error(Error::StsUnsupportedFormat, "Unsupported video sink");

0 commit comments

Comments
 (0)