This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
ptx: correct decoding
The image data is in BGR and not in RGB. Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n1.0
Paul B Mahol
13 years ago
parent
ad8dabfe9c
commit
0b74b8f649
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/ptx.c
+1
-1
tests/ref/fate/ptx
+ 1
- 1
libavcodec/ptx.c
View File
@@ -58,7 +58,7 @@ static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
return -1;
}
avctx->pix_fmt = PIX_FMT_
RG
B555LE;
avctx->pix_fmt = PIX_FMT_B
GR
555LE;
if (buf_end - buf < offset)
return AVERROR_INVALIDDATA;
+ 1
- 1
tests/ref/fate/ptx
View File
@@ -1,2 +1,2 @@
#tb 0: 1/25
0, 0, 0, 1, 393216, 0x
019d
9950
0, 0, 0, 1, 393216, 0x
3047
9950
Write
Preview
Loading…
Cancel
Save