Browse Source

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
tags/n0.8
Aurelien Jacobs 15 years ago
parent
commit
2899a28cdc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/avformat.h

+ 2
- 1
libavformat/avformat.h View File

@@ -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


Loading…
Cancel
Save