diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-05-14 23:08:01 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-05-14 23:08:01 +0000 |
commit | d8085ea727f8768c3ef62d988df79cda6c052301 (patch) | |
tree | 896e0b92005e09ccb8ab3b93abc8ff16f0be49f0 /libavcodec/utils.c | |
parent | 3bb10888ff7a845efa30fd64d5978a8708db01d7 (diff) | |
download | ffmpeg-d8085ea727f8768c3ef62d988df79cda6c052301.tar.gz |
cleanup
Originally committed as revision 1882 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 01d945b997..227b4b5e4e 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -640,6 +640,18 @@ void avcodec_default_free_buffers(AVCodecContext *s){ s->internal_buffer_count=0; } +char av_get_pict_type_char(int pict_type){ + switch(pict_type){ + case I_TYPE: return 'I'; + case P_TYPE: return 'P'; + case B_TYPE: return 'B'; + case S_TYPE: return 'S'; + case SI_TYPE:return 'i'; + case SP_TYPE:return 'p'; + default: return '?'; + } +} + int av_reduce(int *dst_nom, int *dst_den, int64_t nom, int64_t den, int64_t max){ int exact=1, sign=0; int64_t gcd, larger; |