x264enc: fix caps leak in set_format()

https://bugzilla.gnome.org/show_bug.cgi?id=730865