Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 34022:fab5ae1132e7
Fix broken indentation due to a tab that slipped in.
author | reimar |
---|---|
date | Sat, 17 Sep 2011 16:53:22 +0000 |
parents | fbb87f092560 |
children | 64a0c61c6f18 |
comparison
equal
deleted
inserted
replaced
34021:fbb87f092560 | 34022:fab5ae1132e7 |
---|---|
781 pkt.flags = AV_PKT_FLAG_KEY; | 781 pkt.flags = AV_PKT_FLAG_KEY; |
782 if (!ctx->palette_sent && sh->bih && sh->bih->biBitCount <= 8) { | 782 if (!ctx->palette_sent && sh->bih && sh->bih->biBitCount <= 8) { |
783 /* Pass palette to codec */ | 783 /* Pass palette to codec */ |
784 uint8_t *pal = av_packet_new_side_data(&pkt, AV_PKT_DATA_PALETTE, AVPALETTE_SIZE); | 784 uint8_t *pal = av_packet_new_side_data(&pkt, AV_PKT_DATA_PALETTE, AVPALETTE_SIZE); |
785 unsigned palsize = sh->bih->biSize - sizeof(*sh->bih); | 785 unsigned palsize = sh->bih->biSize - sizeof(*sh->bih); |
786 if (palsize == 0) { | 786 if (palsize == 0) { |
787 /* Palette size in biClrUsed */ | 787 /* Palette size in biClrUsed */ |
788 palsize = sh->bih->biClrUsed * 4; | 788 palsize = sh->bih->biClrUsed * 4; |
789 } | 789 } |
790 memcpy(pal, sh->bih+1, FFMIN(palsize, AVPALETTE_SIZE)); | 790 memcpy(pal, sh->bih+1, FFMIN(palsize, AVPALETTE_SIZE)); |
791 ctx->palette_sent = 1; | 791 ctx->palette_sent = 1; |