dickontoo / omxtx

OpenMAX transcoder for the Raspberry Pi
GNU General Public License v2.0
117 stars 36 forks source link

Fix the issue of "Tag <blah> incompatible with output codec id '<blah>'" #5

Closed charrea6 closed 11 years ago

charrea6 commented 11 years ago

This little fix solves the above problem where libavformat refuses to write the header while complaining about an obscure tag value.

It turns out that libavformat doesn't like the codec_tag that is copied into the output stream codec context from the input stream codec context. Setting this to 0 allows the correct codec_tag for the output container format to be selected when the header is written.

dickontoo commented 11 years ago

Cheers. Been annoying me, that one.