diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-07-16 21:53:44 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-07-17 17:06:24 +0000 |
commit | 0b74b8f649db87859d5b7ef5c4e5f6dbc0c0615a (patch) | |
tree | 8dc6c4be078ed7b6ddbaee2e552eb5f21fd82e2f /libavcodec/ptx.c | |
parent | ad8dabfe9cfadfe50f9f6d47b481a434c2bc9376 (diff) | |
download | ffmpeg-0b74b8f649db87859d5b7ef5c4e5f6dbc0c0615a.tar.gz |
ptx: correct decoding
The image data is in BGR and not in RGB.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/ptx.c')
-rw-r--r-- | libavcodec/ptx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ptx.c b/libavcodec/ptx.c index 3f6c746e8c..6b8dbd329d 100644 --- a/libavcodec/ptx.c +++ b/libavcodec/ptx.c @@ -58,7 +58,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, return -1; } - avctx->pix_fmt = PIX_FMT_RGB555LE; + avctx->pix_fmt = PIX_FMT_BGR555LE; if (buf_end - buf < offset) return AVERROR_INVALIDDATA; |