提交 8effe2c6 编写于 作者: K kc5nra

deps-libff: Send NULL frame to callback if EOF

A null frame send to the frame callback signals
the end of media being played.  Null frames are not
sent for looped media
上级 c7ad555e
......@@ -184,6 +184,7 @@ void ff_decoder_refresh(void *opaque)
// Schedule another call as soon as possible
ff_decoder_schedule_refresh(decoder, 1);
} else {
ff_callbacks_frame(decoder->callbacks, NULL);
decoder->refresh_timer.abort = true;
// no more refreshes, we are at the eof
av_log(NULL, AV_LOG_INFO,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册