av_codec_get_tag() can return 0 both in case of error and success.
Attach a file by drag & drop or click to upload