minor changes in wrapper 3

This commit is contained in:
Alexander Shishkov
2012-03-15 20:14:59 +00:00
parent b5a9c9ac77
commit a12fb7f96c

View File

@@ -1187,7 +1187,7 @@ bool CvVideoWriter_FFMPEG::writeFrame( const unsigned char* data, int step, int
#if LIBAVFORMAT_BUILD > 4628
AVCodecContext *c = video_st->codec;
#else
AVCodecContext *c = &(video_st->codec);
AVCodecContext *c = &(video_st->codec);
#endif
#if LIBAVFORMAT_BUILD < 5231
@@ -1376,9 +1376,9 @@ bool CvVideoWriter_FFMPEG::open( const char * filename, int fourcc,
close();
// check arguments
assert (filename);
assert (fps > 0);
assert (width > 0 && height > 0);
assert(filename);
assert(fps > 0);
assert(width > 0 && height > 0);
// tell FFMPEG to register codecs
av_register_all ();