diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2010-10-06 20:49:25 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2010-10-06 20:49:25 +0000 |
commit | 2899a28cdcc63a97d476de2bba523033d8b02486 (patch) | |
tree | f363444894c17fb73c3c463fef5560b3437b2a33 /libavformat/avformat.h | |
parent | 6612d8cf3170a5bf1b3460c22f8c725c02542533 (diff) | |
download | ffmpeg-2899a28cdcc63a97d476de2bba523033d8b02486.tar.gz |
document the fact that av_new_stream() can't be called in a background thread
Originally committed as revision 25379 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index feb285bdb8..d55a44689b 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -363,7 +363,8 @@ typedef struct AVInputFormat { /** * Read one packet and put it in 'pkt'. pts and flags are also * set. 'av_new_stream' can be called only if the flag - * AVFMTCTX_NOHEADER is used. + * AVFMTCTX_NOHEADER is used and only in the calling thread (not in a + * background thread). * @return 0 on success, < 0 on error. * When returning an error, pkt must not have been allocated * or must be freed before returning |