forked from FFmpeg/FFmpeg
avcodec/pgxdec: Use unsigned types for unsigned values
Both AV_PIX_FMT_GRAY8 and AV_PIX_FMT_GRAY16 use unsigned values, not signed ones. The fact that the input might be signed in some cases in the original format doesn't change this. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
84a80ac15d
commit
a655b0a506
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@ error:
|
|||
} \
|
||||
} \
|
||||
|
||||
WRITE_FRAME(8, int8_t, byte)
|
||||
WRITE_FRAME(16, int16_t, be16)
|
||||
WRITE_FRAME(8, uint8_t, byte)
|
||||
WRITE_FRAME(16, uint16_t, be16)
|
||||
|
||||
static int pgx_decode_frame(AVCodecContext *avctx, AVFrame *p,
|
||||
int *got_frame, AVPacket *avpkt)
|
||||
|
|
Loading…
Add table
Reference in a new issue