FFMPEG解码错误:No start code is found,Error splitting the input into NAL units.解决办法。

错误

[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);

猜你喜欢

转载自blog.csdn.net/qq_31231915/article/details/123481205