错误
[h264 @ 000001549d341740] No start code is found.
[h264 @ 000001549d341740] Error splitting the input into NAL units.
方法
添加
avcodec_parameters_to_context(vctx, ifmt->streams[video_index]->codecpar);
[h264 @ 000001549d341740] No start code is found.
[h264 @ 000001549d341740] Error splitting the input into NAL units.
添加
avcodec_parameters_to_context(vctx, ifmt->streams[video_index]->codecpar);