Be more carefull which embed tags we are changing

This fixes problems with google hangouts
Merge pull request #41 from mar-kolya/master

Be more carefull which embed tags we are changing
avoid double locking in h264_translate_reference_frames