Revert "Fix bug in H.264 codec detection"

This reverts commit 2979b04db5da936133d54aafe3e910fca7949295.