aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ivi.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2016-04-03 21:23:41 +0200
committerMarton Balint <cus@passwd.hu>2016-04-04 23:24:58 +0200
commita07934d51b40b0f48be531a359d39c091c414643 (patch)
tree8a5e5f36b0a3db9e0aa4b24dae3f6ee87cfa24ee /libavcodec/ivi.h
parent832861535a51a0c964a25207b86d9f2f04fced12 (diff)
downloadffmpeg-a07934d51b40b0f48be531a359d39c091c414643.tar.gz
ffplay: fix silence insertion on error or pause
Insertion of silence was a bit broken since df34b700981de606ca4847e1ed0bfdf9ac3e9104 because the info whether or not the source buffer supposed to be silence must be kept between callbacks. Failing to do so causes rogue samples from the last buffer to be presented, I guess even a crash can occur under some circumstances. This patch uses a NULL audio_buf to keep the silence state across audio callbacks. Reviewed-by: Lukasz Marek <lukasz.m.luki2 at gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/ivi.h')
0 files changed, 0 insertions, 0 deletions