summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-03 14:48:39 +0100
committerAnton Khirnov <anton@khirnov.net>2011-04-19 18:37:21 +0200
commite89e5afdd04a0f081ecc38b528c1147f204027d7 (patch)
treea759547d2234acc7b85c3573f250c24bb4ab848d /libavcodec/utils.c
parent9b4f1cdb6a7e838c0261109e8a6262e78657ee7b (diff)
lavc: remove the FF_API_VIDEO_OLD cruft.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e90be4614d..89bd4a1f55 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -631,22 +631,6 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
return ret;
}
-#if FF_API_VIDEO_OLD
-int attribute_align_arg avcodec_decode_video(AVCodecContext *avctx, AVFrame *picture,
- int *got_picture_ptr,
- const uint8_t *buf, int buf_size)
-{
- AVPacket avpkt;
- av_init_packet(&avpkt);
- avpkt.data = buf;
- avpkt.size = buf_size;
- // HACK for CorePNG to decode as normal PNG by default
- avpkt.flags = AV_PKT_FLAG_KEY;
-
- return avcodec_decode_video2(avctx, picture, got_picture_ptr, &avpkt);
-}
-#endif
-
int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
int *got_picture_ptr,
AVPacket *avpkt)