Skip to content

Commit

Permalink
Added TODO comment regarding h264_mediacodec extradata.
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed May 30, 2020
1 parent 35cf5d2 commit 3871768
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/avcodec/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ static int init_decoder(struct viddec_state *st, const char *name)

st->ctx = avcodec_alloc_context3(st->codec);

/* TODO: If avcodec_h264dec is h264_mediacodec, extradata needs to
added to context that contains Sequence Parameter Set (SPS) and
Picture Parameter Set (PPS), before avcodec_open2() is called.
*/

st->pict = av_frame_alloc();

if (!st->ctx || !st->pict)
Expand Down

0 comments on commit 3871768

Please sign in to comment.