Possible fix for T38644: H.264 with PNG RGBA encoding crashes

This commit is contained in:
Sergey Sharybin
2014-02-18 12:37:21 +06:00
parent 97b90d89f4
commit 2175302d3b

View File

@@ -606,7 +606,7 @@ static AVStream *alloc_video_stream(RenderData *rd, int codec_id, AVFormatContex
if (codec_id == AV_CODEC_ID_PNG) {
if (rd->im_format.planes == R_IMF_PLANES_RGBA) {
c->pix_fmt = PIX_FMT_ARGB;
c->pix_fmt = PIX_FMT_RGBA;
}
}