Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] lavf/avformat.h: document av_guess_codec() parameters
@ 2022-06-12 16:23 Stefano Sabatini
  0 siblings, 0 replies; only message in thread
From: Stefano Sabatini @ 2022-06-12 16:23 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: Stefano Sabatini

Also annotate that some of the parameters were never used.

Fix trac issue:
http://trac.ffmpeg.org/ticket/4706
---
 libavformat/avformat.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index f12fa7d904..58030f1814 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2493,6 +2493,15 @@ const AVOutputFormat *av_guess_format(const char *short_name,
 
 /**
  * Guess the codec ID based upon muxer and filename.
+ *
+ * @param fmt        the output format, for example one computed by
+ *                   av_guess_format()
+ * @param short_name currently ignored
+ * @param filename   the filename where the encoded stream is going to be stored
+ * @param mime_type  currently ignored
+ * @param media_type the codec media type
+ * @return the guessed codec ID, or AV_CODEC_ID_NONE in case none could be guessed
+ *
  */
 enum AVCodecID av_guess_codec(const AVOutputFormat *fmt, const char *short_name,
                               const char *filename, const char *mime_type,
-- 
2.25.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-12 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-12 16:23 [FFmpeg-devel] [PATCH] lavf/avformat.h: document av_guess_codec() parameters Stefano Sabatini

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git