Commit 1da18667 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/xbmdec: support X10 format

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4618084a
......@@ -95,6 +95,13 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
if (av_isxdigit(*ptr))
val = (val << 4) + convert(*ptr++);
*dst++ = ff_reverse[val];
if (av_isxdigit(*ptr) && j+1 < linesize) {
j++;
val = convert(*ptr++);
if (av_isxdigit(*ptr))
val = (val << 4) + convert(*ptr++);
*dst++ = ff_reverse[val];
}
} else {
av_log(avctx, AV_LOG_ERROR,
"Unexpected data at %.8s.\n", ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment