[Ffmpeg-devel] [PATCH] Targa encoder

Michael Niedermayer michaelni
Mon Mar 12 03:40:14 CET 2007


Hi

On Mon, Mar 12, 2007 at 10:56:47AM +0900, Bobby Bingham wrote:
[...]
> >>+    switch(avctx->pix_fmt) {
> >>+    case PIX_FMT_GRAY8:
> >>+        outbuf[2] = 3;           /* uncompressed grayscale image */
> >>+        outbuf[16] = 8;          /* bpp */
> >
> >avctx->bits_per_sample
> 
> I gave this a try, but this value seems to be zero when the encoder gets 
> called.  Where is this value set?  

hmm nowhere ...
sorry, forget my suggestion, ideally it should be set somewhere but iam
not entirely sure where would be best, the easiest would be to just
keep your old code ...

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070312/6845a4eb/attachment.pgp>



More information about the ffmpeg-devel mailing list