heif: skip A/V track specific code

Also fix logic to assign primary when it's not set,
choose among visible items before default to 0. This
avoids setting the primary to a some tile (which is
hidden) when grid is in use.

bug: 63633199

Change-Id: I050f0da380f5397e5ca227558f0e4df74cd36156
1 file changed