Skip to content

Commit dba41a7

Browse files
author
Clement Champetier
committed
OutputVideo: encodeFrame - remove unnecessary cast
1 parent 2941282 commit dba41a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/EssenceStream/OutputVideo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ bool OutputVideo::encodeFrame( const Frame& sourceFrame, DataStream& codedFrame
6868
frame->width = codecContext->width;
6969
frame->height = codecContext->height;
7070
frame->format = codecContext->pix_fmt;
71-
avpicture_fill( (AVPicture*)frame, const_cast< unsigned char * >( sourceImageFrame.getPtr() ), codecContext->pix_fmt, codecContext->width, codecContext->height );
71+
avpicture_fill( (AVPicture*)frame, sourceImageFrame.getPtr(), codecContext->pix_fmt, codecContext->width, codecContext->height );
7272

7373
AVPacket packet;
7474
av_init_packet( &packet );

0 commit comments

Comments
 (0)