<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hello,<br></div><div><br></div><div>Is there a way for FFmpeg to decode an H264 bitstream into packed RGB? <br></div><div>Ideally AV_PIX_FMT_BGR0 or AV_PIX_FMT_BGRA.<br></div><div><br></div><div>For the encoder, I am using libx264rgb with AV_PIX_FMT_BGR0.<br></div><div><br></div><div>For the decoder, I am using AV_CODEC_ID_H264. However, the frame comes back from the decoder as AV_PIX_FMT_GBRP. This seems to be the only option supplied to get_format().<br></div><div><br></div><div>I am trying to minimize encode/decode latency, so I am trying to avoid using swscale after decoding.<br></div><div><br></div><div>Thanks!<br></div><div>- Alan<br></div></div><br></body></html>