summaryrefslogtreecommitdiffstats
path: root/mpvcore/av_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-04 20:58:19 +0100
committerwm4 <wm4@nowhere>2013-12-04 23:12:51 +0100
commit47c4b5c0003fa50cfefc3f2e8a089a9b0feebe3f (patch)
tree64ec0d1eaf105aaf113fb7ac4d09cb67452154bd /mpvcore/av_common.h
parent0afd121ae67a60d033fc8f74ec28bbb8b84f031d (diff)
downloadmpv-47c4b5c0003fa50cfefc3f2e8a089a9b0feebe3f.tar.bz2
mpv-47c4b5c0003fa50cfefc3f2e8a089a9b0feebe3f.tar.xz
vd_lavc: factor out libavcodec thread setup
Diffstat (limited to 'mpvcore/av_common.h')
-rw-r--r--mpvcore/av_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/av_common.h b/mpvcore/av_common.h
index e457628979..7bf2d64d9e 100644
--- a/mpvcore/av_common.h
+++ b/mpvcore/av_common.h
@@ -31,6 +31,7 @@ void mp_copy_lav_codec_headers(AVCodecContext *avctx, AVCodecContext *st);
void mp_set_av_packet(AVPacket *dst, struct demux_packet *mpkt, AVRational *tb);
int64_t mp_pts_to_av(double mp_pts, AVRational *tb);
double mp_pts_from_av(int64_t av_pts, AVRational *tb);
+void mp_set_avcodec_threads(AVCodecContext *avctx, int threads);
void mp_add_lavc_decoders(struct mp_decoder_list *list, enum AVMediaType type);
int mp_codec_to_av_codec_id(const char *codec);
const char *mp_codec_from_av_codec_id(int codec_id);