[FFmpeg-devel] [PATCH] avcodec/r210: use correct pixel format

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Dec 2 19:17:17 EET 2018


2018-12-02 18:06 GMT+01:00, Paul B Mahol <onemda at gmail.com>:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
>  libavcodec/r210dec.c          | 38 ++++++++++++++++++-----------------
>  libavcodec/r210enc.c          | 26 +++++++++++++++---------
>  tests/ref/vsynth/vsynth1-r210 |  6 +++---
>  tests/ref/vsynth/vsynth2-r210 |  6 +++---
>  tests/ref/vsynth/vsynth3-r210 |  6 +++---
>  5 files changed, 45 insertions(+), 37 deletions(-)
>
> diff --git a/libavcodec/r210dec.c b/libavcodec/r210dec.c
> index dbc94c76bd..22b95e9092 100644
> --- a/libavcodec/r210dec.c
> +++ b/libavcodec/r210dec.c
> @@ -27,11 +27,7 @@
>
>  static av_cold int decode_init(AVCodecContext *avctx)
>  {
> -    if ((avctx->codec_tag & 0xFFFFFF) == MKTAG('r', '1', '0', 0)) {
> -        avctx->pix_fmt = AV_PIX_FMT_BGR48;
> -    } else {
> -        avctx->pix_fmt = AV_PIX_FMT_RGB48;
> -    }
> +    avctx->pix_fmt = AV_PIX_FMT_GBRP10;

Does this patch cause a change in performance?

Carl Eugen


More information about the ffmpeg-devel mailing list