Matthieu Bouron
0f2654c9a3
lavc: add mediacodec hwaccel support
2016-07-08 17:02:37 +02:00
Matthieu Bouron
88d9c30cf5
lavc/mediacodecdec_h264: properly convert extradata to annex-b
...
H264ParamSets has its SPS/PPS stored raw (SODB) and needs to be
converted to NAL units before sending them to MediaCodec.
This patch adds the missing convertion of the SPS/PPS from SOBP to RBSP
which makes the resulting NAL units correct.
Fixes codec initialization on Nexus 4 and Nexus 7.
2016-07-06 15:10:16 +02:00
Matthieu Bouron
db0af7250a
lavc/mediacodecdec_h264: add missing NAL headers to SPS/PPS buffers
...
Fixes a regression introduced by 0cd5e281df
.
2016-06-29 10:46:29 +02:00
Matthieu Bouron
0cd5e281df
lavc/mediacodecdec_h264: use ff_h264_decode_extradata to extract PPS/SPS
...
Fixes playback of HLS streams on MediaTek devices which requires PPS/SPS
to be set in their respective csd-{0,1} buffers.
2016-06-21 14:20:57 +02:00
Matthieu Bouron
432891a96e
lavc/mediacodecdec{,_h264}: set FF_CODEC_CAP_SETS_PKT_DTS capability
...
And sets frames pkt_dts to AV_NOPTS_VALUE as we do not want lavc/utils
to overwrite the field with incorrect values as the decoder is
asynchronous.
2016-06-20 10:07:41 +02:00
Matthieu Bouron
12f47539ca
lavc/mediacodecdec_h264: rename input_ref to input_pkt
2016-06-03 10:20:54 +02:00
Matthieu Bouron
15432a903e
lavc/mediacodecdec_h264: switch to new BSF API
2016-06-03 10:20:54 +02:00
Matthieu Bouron
4737fe6907
lavc: add h264 mediacodec decoder
2016-03-07 11:28:29 +01:00