<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin:0;">Hi,</div><div style="margin:0;"><br></div><div style="margin:0;">In ffmpeg.c, input stream's deocder will be initialized in init_input_stream(), where ist->dec_ctx->get_format and ist->dec_ctx->get_buffer2 are custom-defined functions, i.e. get_format() and get_buffer().</div><div style="margin:0;"><br></div><div style="margin:0;">Why ffmpeg.c uses custom-defined functions instead of default functions?</div><div style="margin:0;"><br></div><div style="margin:0;">I add some simple source code in ffmpeg.c, where input stream's decoder is closed, and reopened. But ffmpeg will coredump. If I use default functions instead of the two custom-defined functions, no coredump exist.</div><div style="margin:0;"><br></div><div style="margin:0;">Is there something wrong with my using ffmpeg functions?</div><div style="margin:0;"><br></div><div style="margin:0;">Thanks!</div><div style="margin:0;"><br></div><div style="margin:0;">Regards</div><div style="margin:0;"><br></div><div style="margin:0;">Andrew</div></div><br><br><span title="neteasefooter"><p> </p></span>