Skip to content

Commit eb46546

Browse files
author
Clement Champetier
committed
VideoEssenceTransform: clean convert
* Add space. * Test the result of sws_scale with height of dst (the src has the same height, but according to ffmpeg documentation, the test concerns the output).
1 parent 7e70cad commit eb46546

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/EssenceTransform/VideoEssenceTransform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void VideoEssenceTransform::convert( const Frame& srcFrame, Frame& dstFrame )
103103
_dstData.at( plane ) = (uint8_t*) dst.getPtr() + _dstOffsets.at( plane );
104104
}
105105

106-
if( !_imageConvertContext )
106+
if( ! _imageConvertContext )
107107
{
108108
throw std::runtime_error( "unknown color convert context" );
109109
}
@@ -112,7 +112,7 @@ void VideoEssenceTransform::convert( const Frame& srcFrame, Frame& dstFrame )
112112
&_srcData[0], &_srcLineSize[0], 0, src.desc().getHeight(),
113113
&_dstData[0], &_dstLineSize[0] );
114114

115-
if( ret != (int) src.desc().getHeight() )
115+
if( ret != (int) dst.desc().getHeight() )
116116
throw std::runtime_error( "error in color converter" );
117117
}
118118

0 commit comments

Comments
 (0)