diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-08-13 17:03:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-08-16 11:09:09 +0200 |
commit | ab3147383006f1a31978efce23c6bad38a754e05 (patch) | |
tree | 379dc0de3405d1ba2d96d887086ab8cd39b1a116 /libavformat/rtmpproto.c | |
parent | 75ffca7eef557bcc714d924048a6e184b39fa470 (diff) | |
download | ffmpeg-ab3147383006f1a31978efce23c6bad38a754e05.tar.gz |
fftools/ffmpeg: store a separate copy of input codec parameters
Use it instead of AVStream.codecpar in the main thread. While
AVStream.codecpar is documented to only be updated when the stream is
added or avformat_find_stream_info(), it is actually updated during
demuxing. Accessing it from a different thread then constitutes a race.
Ideally, some mechanism should eventually be provided for signalling
parameter updates to the user. Then the demuxing thread could pick up
the changes and propagate them to the decoder.
Diffstat (limited to 'libavformat/rtmpproto.c')
0 files changed, 0 insertions, 0 deletions