diff mbox

[FFmpeg-devel] avcodec: fix some docstrings

Message ID 7374523f-f697-50ec-b199-6387d7d6a38c@gmail.com
State New
Headers show

Commit Message

Nicolas Granger Jan. 12, 2019, 11:15 p.m. UTC
Hello,

This fixes an erroneous reference and missing links in the API documentation.

Best regards,

Nicolas Granger

---
libavcodec/avcodec.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Michael Niedermayer Jan. 13, 2019, 5:32 p.m. UTC | #1
On Sun, Jan 13, 2019 at 12:15:55AM +0100, Nicolas Granger wrote:
> Hello,
> 
> This fixes an erroneous reference and missing links in the API documentation.
> 
> Best regards,
> 
> Nicolas Granger
> 
> ---
> libavcodec/avcodec.h | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index 4414853e84..64ba039be2 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -4892,7 +4892,8 @@ int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt);
> * @param frame This will be set to a reference-counted video or audio
> * frame (depending on the decoder type) allocated by the
> * decoder. Note that the function will always call
> - * av_frame_unref(frame) before doing anything else.
> + * @ref av_frame_unref "av_frame_unref(frame)" before doing
> + * anything else.

this patch is corrupted and will not apply automatically

[...]
diff mbox

Patch

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4414853e84..64ba039be2 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4892,7 +4892,8 @@  int avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt);
* @param frame This will be set to a reference-counted video or audio
* frame (depending on the decoder type) allocated by the
* decoder. Note that the function will always call
- * av_frame_unref(frame) before doing anything else.
+ * @ref av_frame_unref "av_frame_unref(frame)" before doing
+ * anything else.
*
* @return
* 0: success, a frame was returned
@@ -4948,7 +4949,8 @@  int avcodec_send_frame(AVCodecContext *avctx, const AVFrame *frame);
* @param avctx codec context
* @param avpkt This will be set to a reference-counted packet allocated by the
* encoder. Note that the function will always call
- * av_frame_unref(frame) before doing anything else.
+ * @ref av_packet_unref "av_packet_unref(avpkt)" before doing
+ * anything else.
* @return 0 on success, otherwise negative error code:
* AVERROR(EAGAIN): output is not available in the current state - user
* must try to send input