Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution

Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution:

Add codec_ FLAG_ GLOBAL_ Head is changed to:

AV_CODEC_FLAG_GLOBAL_HEADER

 

Read More: