[FFmpeg-devel] [PATCH] camtasia colorspace
Loren Merritt
lorenm
Fri Sep 28 05:22:13 CEST 2007
I have exactly one sample of the Camtasia format. It plays with swapped
R/B planes in ffplay, but plays correctly in mplayer. AFAICT, ffmpeg says
its outupt is rgb, but mplayer ignores that and treats it as bgr as
written in codecs.conf. Was this a typo, or are some samples actually rgb?
--Loren Merritt
-------------- next part --------------
Index: libavcodec/tscc.c
===================================================================
--- libavcodec/tscc.c (revision 10605)
+++ libavcodec/tscc.c (working copy)
@@ -276,11 +276,11 @@
#endif
switch(avctx->bits_per_sample){
case 8: avctx->pix_fmt = PIX_FMT_PAL8; break;
- case 16: avctx->pix_fmt = PIX_FMT_RGB555; break;
+ case 16: avctx->pix_fmt = PIX_FMT_BGR555; break;
case 24:
avctx->pix_fmt = PIX_FMT_BGR24;
break;
- case 32: avctx->pix_fmt = PIX_FMT_RGB32; break;
+ case 32: avctx->pix_fmt = PIX_FMT_BGR32; break;
default: av_log(avctx, AV_LOG_ERROR, "Camtasia error: unknown depth %i bpp\n", avctx->bits_per_sample);
return -1;
}
More information about the ffmpeg-devel
mailing list