Skip to content

Commit

Permalink
Fix SPDIFEncoder's avio context.
Browse files Browse the repository at this point in the history
avid context used to create the raw buffer was opened read only.
  • Loading branch information
jyavenard committed Nov 2, 2015
1 parent 5c9b799 commit 033c623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/spdifencoder.cpp
Expand Up @@ -48,7 +48,7 @@ SPDIFEncoder::SPDIFEncoder(QString muxer, int codec_id)
}
m_oc->oformat = fmt;

m_oc->pb = avio_alloc_context(m_buffer, sizeof(m_buffer), 0,
m_oc->pb = avio_alloc_context(m_buffer, sizeof(m_buffer), 1,
this, NULL, funcIO, NULL);
if (!m_oc->pb)
{
Expand Down

0 comments on commit 033c623

Please sign in to comment.