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

Paul B Mahol onemda at gmail.com
Sun Dec 2 19:28:04 EET 2018


On 12/2/18, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 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?

NOpe.


More information about the ffmpeg-devel mailing list