[SCM] libav/experimental: Register intrrupt_cb() early enough so we dont get stuck with tcp input for example. Fixes issue66
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:24:24 UTC 2013
The following commit has been merged in the experimental branch:
commit b86f5a02ea105295eb018c762ae61b10b7fbcd0a
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Thu Jun 26 20:50:15 2008 +0000
Register intrrupt_cb() early enough so we dont get stuck with tcp input
for example.
Fixes issue66
Originally committed as revision 13992 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/ffmpeg.c b/ffmpeg.c
index 371421d..4c13bb5 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3785,6 +3785,9 @@ int main(int argc, char **argv)
avdevice_register_all();
av_register_all();
+ if(isatty(STDIN_FILENO))
+ url_set_interrupt_cb(decode_interrupt_cb);
+
for(i=0; i<CODEC_TYPE_NB; i++){
avctx_opts[i]= avcodec_alloc_context2(i);
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list