[FFmpeg-devel] [PATCH] avformat/tee: signal EOF if no more output is to be published.

Gyan Doshi ffmpeg at gyani.pro
Sat Feb 4 12:04:20 EET 2023



On 2023-02-03 02:02 pm, Marton Balint wrote:
>
>
> Any av_interleaved_write_frame() negative return value is an error, 
> ffmpeg should abort. It seems that there is a clash of error codes in 
> sync_queue_process which returns AVERROR_EOF to signal sq_send EOF 
> return, but that clashes with the AVERROR_EOF of 
> av_interleaved_write_frame(), so the error condition is lost.

New patch sent.

Note that the behaviour since 2d924b3a630 is to terminate only that 
muxer's thread, which I haven't changed. I think this is preferable to 
runtime abortion.

Regards,
Gyan



More information about the ffmpeg-devel mailing list