tangyxgit / FFmpegVideo

android ffmpeg小视频功能
68 stars 17 forks source link

线程安全 #8

Open alexliyu7352 opened 5 years ago

alexliyu7352 commented 5 years ago

如果多个线程执行runcmd, 应该是不安全的吧? 因为ffmpeg.c的代码使用了大量的全局变量, 所以应该同时多个线程执行多个命令会有问题?

tangyxgit commented 5 years ago

是的,外部如果多线程调用,合成可能会出问题

发送自我的三星盖乐世智能手机。

-------- 原始信息 -------- 发件人: alexliyu7352 notifications@github.com 日期: 2018/12/16 16:13 (GMT+08:00) 收件人: tangyxgit/FFmpegVideo FFmpegVideo@noreply.github.com 抄送: Subscribed subscribed@noreply.github.com 主题: [tangyxgit/FFmpegVideo] 线程安全 (#8)

如果多个线程执行runcmd, 应该是不安全的吧? 因为ffmpeg.c的代码使用了大量的全局变量, 所以应该同时多个线程执行多个命令会有问题?

― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tangyxgit/FFmpegVideo/issues/8, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKUgcJGmCEBeneVFXKEqNMRxwoOeokLJks5u5gCigaJpZM4ZVEYr.