Mercurial > libavcodec.hg
comparison utils.c @ 10867:bf309c7ce615 libavcodec
More av_cold for infrequently called functions.
author | zuxy |
---|---|
date | Wed, 13 Jan 2010 02:16:00 +0000 |
parents | f20726a6d538 |
children | 31bdf73a0330 |
comparison
equal
deleted
inserted
replaced
10866:d26e9b4d2ca1 | 10867:bf309c7ce615 |
---|---|
660 if (*got_sub_ptr) | 660 if (*got_sub_ptr) |
661 avctx->frame_number++; | 661 avctx->frame_number++; |
662 return ret; | 662 return ret; |
663 } | 663 } |
664 | 664 |
665 int avcodec_close(AVCodecContext *avctx) | 665 av_cold int avcodec_close(AVCodecContext *avctx) |
666 { | 666 { |
667 /* If there is a user-supplied mutex locking routine, call it. */ | 667 /* If there is a user-supplied mutex locking routine, call it. */ |
668 if (ff_lockmgr_cb) { | 668 if (ff_lockmgr_cb) { |
669 if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) | 669 if ((*ff_lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) |
670 return -1; | 670 return -1; |