mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/xbmdec: support X10 format
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4618084a5c
commit
1da1866767
|
@ -95,6 +95,13 @@ static int xbm_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
if (av_isxdigit(*ptr))
|
if (av_isxdigit(*ptr))
|
||||||
val = (val << 4) + convert(*ptr++);
|
val = (val << 4) + convert(*ptr++);
|
||||||
*dst++ = ff_reverse[val];
|
*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 {
|
} else {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Unexpected data at %.8s.\n", ptr);
|
"Unexpected data at %.8s.\n", ptr);
|
||||||
|
|
Loading…
Reference in New Issue