X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fkmvc.c;h=3ab4adf176ef9f04c5f954e9f053ed819673733e;hb=5f621dd28aa8c7c71edc97c2867cacde346af353;hp=c56b62ca2f9f7cf08769be6b485bc7a8b37efbbc;hpb=2c124cb65c24cc7d0538260726045d68442eef25;p=ffmpeg diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c index c56b62ca2f9..3ab4adf176e 100644 --- a/libavcodec/kmvc.c +++ b/libavcodec/kmvc.c @@ -17,7 +17,6 @@ * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * */ /** @@ -68,7 +67,7 @@ typedef struct BitBuf { } \ } -static void kmvc_decode_intra_8x8(KmvcContext * ctx, uint8_t * src, int w, int h) +static void kmvc_decode_intra_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h) { BitBuf bb; int res, val; @@ -143,7 +142,7 @@ static void kmvc_decode_intra_8x8(KmvcContext * ctx, uint8_t * src, int w, int h } } -static void kmvc_decode_inter_8x8(KmvcContext * ctx, uint8_t * src, int w, int h) +static void kmvc_decode_inter_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h) { BitBuf bb; int res, val; @@ -225,7 +224,7 @@ static void kmvc_decode_inter_8x8(KmvcContext * ctx, uint8_t * src, int w, int h } } -static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, +static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, int buf_size) { KmvcContext *const ctx = avctx->priv_data; @@ -339,7 +338,7 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint /* * Init kmvc decoder */ -static int decode_init(AVCodecContext * avctx) +static av_cold int decode_init(AVCodecContext * avctx) { KmvcContext *const c = avctx->priv_data; int i; @@ -391,7 +390,7 @@ static int decode_init(AVCodecContext * avctx) /* * Uninit kmvc decoder */ -static int decode_end(AVCodecContext * avctx) +static av_cold int decode_end(AVCodecContext * avctx) { KmvcContext *const c = avctx->priv_data; @@ -411,5 +410,6 @@ AVCodec kmvc_decoder = { decode_init, NULL, decode_end, - decode_frame + decode_frame, + .long_name = NULL_IF_CONFIG_SMALL("Karl Morton's video codec"), };