Skip to content

Commit

Permalink
fix ffmpeg audio3a invalidate failure (#225)
Browse files Browse the repository at this point in the history
* Encode app free rc control

* cancel cpu2dsp task when terminate ffmpeg

Co-authored-by: bunny720 <a723618928@163.com>
Co-authored-by: zhangxiaojingCAN <104607452+zhangxiaojingCAN@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 26, 2022
1 parent deb823b commit d50df1f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions package/ffmpeg_canaan/0029-buildroot-ffmpeg.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Index: b/libavfilter/af_audio3a.c
===================================================================
--- a/libavfilter/af_audio3a.c
+++ b/libavfilter/af_audio3a.c
@@ -646,6 +646,9 @@ static av_cold void uninit(AVFilterConte
printf("%s>Error!\n", __FUNCTION__);
}
}
+
+ pthread_cancel(s->thread_1);
+ pthread_join(s->thread_1, NULL);

close(s->fd_mailbox);
close(s->fd_share_memory);

0 comments on commit d50df1f

Please sign in to comment.