X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fr210enc.c;h=be1943f5f9237e209ce6f458f0aeca6ab4a948b5;hb=159bcb19b9482a98652ded9eee2751e9de0e9d0f;hp=02412f3684a91df04e2374c93412f1b220d63bb5;hpb=47e12966b75490cfa5fb8ed65a48a9a3d84a7bce;p=ffmpeg diff --git a/libavcodec/r210enc.c b/libavcodec/r210enc.c index 02412f3684a..be1943f5f92 100644 --- a/libavcodec/r210enc.c +++ b/libavcodec/r210enc.c @@ -60,9 +60,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint16_t *srcb = (uint16_t *)srcb_line; for (j = 0; j < avctx->width; j++) { uint32_t pixel; - uint16_t r = *srcr++; - uint16_t g = *srcg++; - uint16_t b = *srcb++; + unsigned r = *srcr++; + unsigned g = *srcg++; + unsigned b = *srcb++; if (avctx->codec_id == AV_CODEC_ID_R210) pixel = (r << 20) | (g << 10) | b; else @@ -94,7 +94,6 @@ AVCodec ff_r210_encoder = { .init = encode_init, .encode2 = encode_frame, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_GBRP10, AV_PIX_FMT_NONE }, - .capabilities = AV_CODEC_CAP_INTRA_ONLY, }; #endif #if CONFIG_R10K_ENCODER @@ -106,7 +105,6 @@ AVCodec ff_r10k_encoder = { .init = encode_init, .encode2 = encode_frame, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_GBRP10, AV_PIX_FMT_NONE }, - .capabilities = AV_CODEC_CAP_INTRA_ONLY, }; #endif #if CONFIG_AVRP_ENCODER @@ -118,6 +116,5 @@ AVCodec ff_avrp_encoder = { .init = encode_init, .encode2 = encode_frame, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_GBRP10, AV_PIX_FMT_NONE }, - .capabilities = AV_CODEC_CAP_INTRA_ONLY, }; #endif