Skip to content

Commit

Permalink
MPCVideoDec: улучшена поддержка FFV1 RGB высокой разрядности.
Browse files Browse the repository at this point in the history
Обновлен custom_code/ffmpeg.txt.
  • Loading branch information
v0lt committed Jul 8, 2024
1 parent 4d24827 commit b89eafa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/custom_code/ffmpeg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* libavcodec/dxva2.c
* libavcodec/dxva2_hevc.c
* libavcodec/dxva2_internal.h
* libavcodec/ffv1.h
* libavcodec/ffv1dec.c
* libavcodec/h264_refs.c
* libavcodec/h264_slice.c
* libavcodec/h264dec.c
Expand Down
7 changes: 6 additions & 1 deletion src/filters/transform/MPCVideoDec/ffmpegContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,12 @@ void FillAVCodecProps(struct AVCodecContext* pAVCtx, BITMAPINFOHEADER* pBMI)
}
}
else if (f->colorspace == 1) {
pAVCtx->pix_fmt = AV_PIX_FMT_RGBA; // and other RGB formats, but it is not important here
if (pAVCtx->bits_per_raw_sample <= 8) {
pAVCtx->pix_fmt = AV_PIX_FMT_RGBA;
}
else {
pAVCtx->pix_fmt = AV_PIX_FMT_RGB48;
}
}
}
}
Expand Down

0 comments on commit b89eafa

Please sign in to comment.