Commit a12fb7f9 authored by Alexander Shishkov's avatar Alexander Shishkov

minor changes in wrapper 3

parent b5a9c9ac
...@@ -1187,7 +1187,7 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int ...@@ -1187,7 +1187,7 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int
#if LIBAVFORMAT_BUILD > 4628 #if LIBAVFORMAT_BUILD > 4628
AVCodecContext *c = video_st->codec; AVCodecContext *c = video_st->codec;
#else #else
AVCodecContext *c = &(video_st->codec); AVCodecContext *c = &(video_st->codec);
#endif #endif
#if LIBAVFORMAT_BUILD < 5231 #if LIBAVFORMAT_BUILD < 5231
...@@ -1376,9 +1376,9 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc, ...@@ -1376,9 +1376,9 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc,
close(); close();
// check arguments // check arguments
assert (filename); assert(filename);
assert (fps > 0); assert(fps > 0);
assert (width > 0 && height > 0); assert(width > 0 && height > 0);
// tell FFMPEG to register codecs // tell FFMPEG to register codecs
av_register_all (); av_register_all ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment