diff options
Diffstat (limited to 'src/plugins/thumbnailffmpeg_extractor.c')
-rw-r--r-- | src/plugins/thumbnailffmpeg_extractor.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/thumbnailffmpeg_extractor.c b/src/plugins/thumbnailffmpeg_extractor.c index ccb9f73..e93e0b2 100644 --- a/src/plugins/thumbnailffmpeg_extractor.c +++ b/src/plugins/thumbnailffmpeg_extractor.c | |||
@@ -88,7 +88,7 @@ void __attribute__ ((constructor)) ffmpeg_lib_init (void) | |||
88 | */ | 88 | */ |
89 | static size_t create_thumbnail( | 89 | static size_t create_thumbnail( |
90 | int src_width, int src_height, int src_stride[], | 90 | int src_width, int src_height, int src_stride[], |
91 | enum PixelFormat src_pixfmt, uint8_t *src_data[], | 91 | enum PixelFormat src_pixfmt, const uint8_t * const src_data[], |
92 | int dst_width, int dst_height, | 92 | int dst_width, int dst_height, |
93 | uint8_t **output_data, size_t output_max_size) | 93 | uint8_t **output_data, size_t output_max_size) |
94 | { | 94 | { |
@@ -376,7 +376,8 @@ extract_image (enum CodecID image_codec_id, | |||
376 | &thumb_width, &thumb_height); | 376 | &thumb_width, &thumb_height); |
377 | 377 | ||
378 | err = create_thumbnail (codec_ctx->width, codec_ctx->height, | 378 | err = create_thumbnail (codec_ctx->width, codec_ctx->height, |
379 | frame->linesize, codec_ctx->pix_fmt, frame->data, | 379 | frame->linesize, codec_ctx->pix_fmt, |
380 | (const uint8_t * const*) frame->data, | ||
380 | thumb_width, thumb_height, | 381 | thumb_width, thumb_height, |
381 | &encoded_thumbnail, MAX_THUMB_BYTES); | 382 | &encoded_thumbnail, MAX_THUMB_BYTES); |
382 | 383 | ||
@@ -580,7 +581,8 @@ RETRY_PROBE: | |||
580 | &thumb_width, &thumb_height); | 581 | &thumb_width, &thumb_height); |
581 | 582 | ||
582 | err = create_thumbnail (codec_ctx->width, codec_ctx->height, | 583 | err = create_thumbnail (codec_ctx->width, codec_ctx->height, |
583 | frame->linesize, codec_ctx->pix_fmt, frame->data, | 584 | frame->linesize, codec_ctx->pix_fmt, |
585 | (const uint8_t* const *) frame->data, | ||
584 | thumb_width, thumb_height, | 586 | thumb_width, thumb_height, |
585 | &encoded_thumbnail, MAX_THUMB_BYTES); | 587 | &encoded_thumbnail, MAX_THUMB_BYTES); |
586 | 588 | ||