aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-23 13:38:50 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-26 08:38:57 +0200
commitbebe72f4a05d338e04ae9ca1e9c6b72749b488aa (patch)
tree8036839520fcde4fba5526e647d53e833075d799 /libavcodec/utils.c
parent30fe9719344f01a147628e07a8e79a9ccc7e0835 (diff)
downloadffmpeg-bebe72f4a05d338e04ae9ca1e9c6b72749b488aa.tar.gz
lavc: deprecate FF_*_TYPE macros in favor of AV_PICTURE_TYPE_* enums
Also deprecate av_get_pict_type_char() in favor of av_get_picture_type_char(). The new enum and av_get_picture_type_char() are defined in libavutil. This allows the use in libavfilter without the need to link against libavcodec. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d60e236952..7e2847afb1 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1030,18 +1030,11 @@ void avcodec_default_free_buffers(AVCodecContext *s){
s->internal_buffer_count=0;
}
+#if FF_API_OLD_FF_PICT_TYPES
char av_get_pict_type_char(int pict_type){
- switch(pict_type){
- case FF_I_TYPE: return 'I';
- case FF_P_TYPE: return 'P';
- case FF_B_TYPE: return 'B';
- case FF_S_TYPE: return 'S';
- case FF_SI_TYPE:return 'i';
- case FF_SP_TYPE:return 'p';
- case FF_BI_TYPE:return 'b';
- default: return '?';
- }
+ return av_get_picture_type_char(pict_type);
}
+#endif
int av_get_bits_per_sample(enum CodecID codec_id){
switch(codec_id){