Skip to content

Commit

Permalink
MythTranscode: Use AVMetadata for language tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed May 6, 2011
1 parent 333e4ed commit 83e79b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/programs/mythtranscode/mpeg2fix.cpp
Expand Up @@ -561,7 +561,10 @@ void MPEG2fixup::InitReplex()
it != aFrame.end(); it++)
{
int i = aud_map[it.key()];
char *lang = inputFC->streams[it.key()]->language;
AVMetadataTag *metatag =
av_metadata_get(inputFC->streams[it.key()]->metadata,
"language", NULL, 0);
char *lang = metatag ? metatag->value : NULL;
ring_init(&rx.extrbuf[i], memsize / 5);
ring_init(&rx.index_extrbuf[i], INDEX_BUF);
rx.extframe[i].set = 1;
Expand Down

0 comments on commit 83e79b6

Please sign in to comment.