Skip to content

Commit

Permalink
Issue #385 - fix compile error on Jessie
Browse files Browse the repository at this point in the history
  • Loading branch information
mickelson committed Nov 21, 2017
1 parent af7ff58 commit 4b93a52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,11 +970,11 @@ bool FeMedia::openFromArchive( const std::string &archive,

size_t avio_ctx_buffer_size = 4096;
uint8_t *avio_ctx_buffer = (uint8_t *)av_malloc( avio_ctx_buffer_size
+ FF_INPUT_BUFFER_PADDING_SIZE );
+ AV_INPUT_BUFFER_PADDING_SIZE );

memset( avio_ctx_buffer + avio_ctx_buffer_size,
0,
FF_INPUT_BUFFER_PADDING_SIZE );
AV_INPUT_BUFFER_PADDING_SIZE );

m_imp->m_io_ctx = avio_alloc_context( avio_ctx_buffer,
avio_ctx_buffer_size, 0, z, &fe_zip_read,
Expand Down Expand Up @@ -1030,7 +1030,7 @@ bool FeMedia::internal_open( sf::Texture *outt )
//
m_audio->buffer = (sf::Int16 *)av_malloc(
MAX_AUDIO_FRAME_SIZE
+ FF_INPUT_BUFFER_PADDING_SIZE
+ AV_INPUT_BUFFER_PADDING_SIZE
+ codec_ctx->sample_rate );

sf::SoundStream::initialize(
Expand Down

0 comments on commit 4b93a52

Please sign in to comment.