Skip to content

Commit 58b68c2

Browse files
authored
Merge pull request #182 from Ralith/fix-data-ptr-ty
Cast frame data pointer to correct type in sws_scale
2 parents 149409f + f6240c3 commit 58b68c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ffpyplayer/player/frame_queue.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ cdef class FrameQueue(object):
162162
if player.img_convert_ctx == NULL:
163163
av_log(NULL, AV_LOG_FATAL, b"Cannot initialize the conversion context\n")
164164
raise_py_exception(b'Cannot initialize the conversion context.')
165-
sws_scale(player.img_convert_ctx, src_frame.data, src_frame.linesize,
165+
sws_scale(player.img_convert_ctx, <const unsigned char* const*>src_frame.data, src_frame.linesize,
166166
0, vp.height, vp.frame.data, vp.frame.linesize)
167167
av_frame_unref(src_frame)
168168
return 0

0 commit comments

Comments
 (0)