Skip to content

Commit 1869f4a

Browse files
author
Clement Champetier
committed
VideoFrame: setPixel takes a reference
1 parent b91fc30 commit 1869f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/frame/VideoFrame.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AvExport VideoFrameDesc
4040

4141
void setWidth ( const size_t width ) { _width = width; }
4242
void setHeight( const size_t height ) { _height = height; }
43-
void setPixel ( const Pixel pixel ) { _pixel = pixel; }
43+
void setPixel( const Pixel& pixel ) { _pixel = pixel; }
4444
void setDar( const size_t num, const size_t den ) { _displayAspectRatio.num = num; _displayAspectRatio.den = den; }
4545
void setDar( const Rational ratio ) { _displayAspectRatio = ratio; }
4646

0 commit comments

Comments
 (0)