File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,16 @@ VideoCodec::VideoCodec( const ICodec& codec )
23
23
VideoFrameDesc VideoCodec::getVideoFrameDesc () const
24
24
{
25
25
assert ( _codecContext != NULL );
26
- VideoFrameDesc VideoFrameDesc;
26
+
27
+ VideoFrameDesc videoFrameDesc;
28
+ videoFrameDesc.setWidth ( _codecContext->width );
29
+ videoFrameDesc.setHeight ( _codecContext->height );
30
+ videoFrameDesc.setDar ( _codecContext->width , _codecContext->height );
31
+
27
32
Pixel pixel ( _codecContext->pix_fmt );
33
+ videoFrameDesc.setPixel ( pixel );
28
34
29
- VideoFrameDesc.setWidth ( _codecContext->width );
30
- VideoFrameDesc.setHeight ( _codecContext->height );
31
- VideoFrameDesc.setPixel ( pixel );
32
- VideoFrameDesc.setDar ( _codecContext->height , _codecContext->width );
33
- return VideoFrameDesc;
35
+ return videoFrameDesc;
34
36
}
35
37
36
38
std::pair< size_t , size_t > VideoCodec::getTimeBase () const
You can’t perform that action at this time.
0 commit comments