libs: enc: h264: set max profile idc with correct profile.

Use the highest rank of available profile as the max profile to
set max idc value.

gstreamer/gstreamer-vaapi#124
6 jobs for max_idc in 29 minutes (queued for 1 second)
Status Job ID Name Coverage
  Preparation
passed #63147
gst indent

00:00:28

passed #63146
manifest

00:00:30

 
  Build
passed #63148
build fedora x86_64

00:03:02

 
  Test
passed #63149
check fedora

00:15:27

 
  Full Builds
passed #63150
build android arm64 api28

00:02:57

passed #63151
build cerbero fedora x86_64

00:09:59