Skip to content
Snippets Groups Projects
Commit 259a3e70 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

ptx: Use av_log_ask_for_sample() where appropriate.

parent fd0c3403
No related branches found
No related tags found
No related merge requests found
...@@ -51,14 +51,14 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, ...@@ -51,14 +51,14 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
bytes_per_pixel = AV_RL16(buf+12) >> 3; bytes_per_pixel = AV_RL16(buf+12) >> 3;
if (bytes_per_pixel != 2) { if (bytes_per_pixel != 2) {
av_log(avctx, AV_LOG_ERROR, "image format is not rgb15, please report on ffmpeg-users mailing list\n"); av_log_ask_for_sample(avctx, "Image format is not RGB15.\n");
return -1; return -1;
} }
avctx->pix_fmt = PIX_FMT_RGB555; avctx->pix_fmt = PIX_FMT_RGB555;
if (offset != 0x2c) if (offset != 0x2c)
av_log(avctx, AV_LOG_WARNING, "offset != 0x2c, untested due to lack of sample files\n"); av_log_ask_for_sample(avctx, "offset != 0x2c\n");
buf += offset; buf += offset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment