• Anton Khirnov's avatar
    lavc/frame_thread_encoder: avoid assigning a whole AVCodecContext · e1f384ad
    Anton Khirnov authored
    It is highly unsafe, as AVCodecContext contains many allocated fields.
    Almost everything needed by worker threads should be covered by
    routing through AVCodecParameters and av_opt_copy(), except for a few
    fields that are copied manually.
    
    avcodec_free_context() can now be used for per-thread contexts.
    e1f384ad
frame_thread_encoder.c 11.4 KB