X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Frawenc.c;h=a2d5ccc0a685502a1fa397e2ef72a8c97b7e15bb;hb=cee1f4c06986941bd31cc19f4333d436394aa6f9;hp=d83705645cb31d063ac62941ad9388967d4c4a7b;hpb=def850676625417d27176a458787545330ab9427;p=ffmpeg diff --git a/libavcodec/rawenc.c b/libavcodec/rawenc.c index d83705645cb..a2d5ccc0a68 100644 --- a/libavcodec/rawenc.c +++ b/libavcodec/rawenc.c @@ -69,6 +69,14 @@ static int raw_encode(AVCodecContext *avctx, AVPacket *pkt, int x; for(x = 1; x < frame->height*frame->width*2; x += 2) pkt->data[x] ^= 0x80; + } else if (avctx->codec_tag == AV_RL32("b64a") && ret > 0 && + frame->format == AV_PIX_FMT_RGBA64BE) { + uint64_t v; + int x; + for (x = 0; x < frame->height * frame->width; x++) { + v = AV_RB64(&pkt->data[8 * x]); + AV_WB64(&pkt->data[8 * x], v << 48 | v >> 16); + } } pkt->flags |= AV_PKT_FLAG_KEY; *got_packet = 1;