提交 53a8c0ef 编写于 作者: B bbcallen

ff_ffplay.c: fix merge ffplay 782e06e292c59abc8528484bd1cb253a42d7f53e

上级 e12b2dff
......@@ -1354,7 +1354,7 @@ static int audio_decode_frame(FFPlayer *ffp)
for (;;) {
/* NOTE: the audio packet can contain several frames */
while (pkt_temp->size > 0 || is->audio_buf_frames_pending) {
while (pkt_temp->stream_index != -1 || is->audio_buf_frames_pending) {
if (!is->frame) {
if (!(is->frame = avcodec_alloc_frame()))
return AVERROR(ENOMEM);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册