From 442978074d4033c5e2bfe154fd91580d97a35f26 Mon Sep 17 00:00:00 2001 From: meh Date: Wed, 9 Sep 2015 13:53:45 +0200 Subject: [PATCH] avformat: make av_guess_codec fmt pointer constant --- sys/src/avformat/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/avformat/format.rs b/sys/src/avformat/format.rs index 964b79c..e987935 100644 --- a/sys/src/avformat/format.rs +++ b/sys/src/avformat/format.rs @@ -531,7 +531,7 @@ extern { pub fn av_write_trailer(s: *mut AVFormatContext) -> c_int; pub fn av_guess_format(short_name: *const c_char, filename: *const c_char, mime_type: *const c_char) -> *mut AVOutputFormat; - pub fn av_guess_codec(fmt: *mut AVOutputFormat, short_name: *const c_char, filename: *const c_char, mime_type: *const c_char, kind: AVMediaType) -> AVCodecID; + pub fn av_guess_codec(fmt: *const AVOutputFormat, short_name: *const c_char, filename: *const c_char, mime_type: *const c_char, kind: AVMediaType) -> AVCodecID; pub fn av_get_output_timestamp(s: *mut AVFormatContext, stream: c_int, dts: *mut int64_t, wall: *mut int64_t) -> c_int;