Attached is a patch to enable selective adjustment of DLNA profile information when serving to Sony BRAVIA televisions. These 2010 models natively support AVC playback in TS containers, but require the files to be listed with specific profiles.
As I was making this mod, it seems nona99 posted a similar solution, which works by altering the stored metadata for affected video files. By contrast, this patch directly amends the SOAP response on the fly when a BRAVIA television is detected. That means it shouldn't break anything for other DLNA clients.