• Mohamed Chibani's avatar
    android media-codec: fix black screen · 0c52ff26
    Mohamed Chibani authored
    Android MediaCodec implementation (H264 in particular) sends codec data
    (SPS/PPS in case of H264) only at the begining of the encoded stream.
    If the decoding side misses the codec data (due to packet loss or if the
    codec data arrives before the decoder is fully setup), the decoder will
    never be able to correctly decode the stream.
    This patch will cache the codec data provided by MediaCodec encoder, then
    send it with every generated key-frame (IDR in case of H264).
    
    Change-Id: I4abe7995cdb2dd42fc721fb00d142b4d4958b5b7
    Gitlab: #232
    0c52ff26
Name
Last commit
Last update
.gitlab/issue_templates Loading commit data...
.tx Loading commit data...
docker Loading commit data...
ring-android Loading commit data...
.gitignore Loading commit data...
.gitreview Loading commit data...
COPYING Loading commit data...
README.md Loading commit data...
build-daemon.sh Loading commit data...
compile.sh Loading commit data...
configure.sh Loading commit data...
fdroidMergeRequest.sh Loading commit data...
gen-env.sh Loading commit data...
getNDKVersion.sh Loading commit data...
update-translations.sh Loading commit data...