提交 dc11a467 编写于 作者: W Wan-Teh Chang 提交者: Michael Niedermayer

ffmpeg: Fix typos in the comment for decode() ("." vs. "->")

pkt is a pointer, so it should be dereferenced with the -> operator.
Signed-off-by: NWan-Teh Chang <wtc@google.com>
Reviewed-by: liuqi_123's avatarSteven Liu <lingjiujianke@gmail.com>
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 3b9cf943
......@@ -2253,8 +2253,8 @@ static int ifilter_send_eof(InputFilter *ifilter)
// This does not quite work like avcodec_decode_audio4/avcodec_decode_video2.
// There is the following difference: if you got a frame, you must call
// it again with pkt=NULL. pkt==NULL is treated differently from pkt.size==0
// (pkt==NULL means get more output, pkt.size==0 is a flush/drain packet)
// it again with pkt=NULL. pkt==NULL is treated differently from pkt->size==0
// (pkt==NULL means get more output, pkt->size==0 is a flush/drain packet)
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
{
int ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册