Skip to content

Commit

Permalink
avcodec/lcldec: mark output frames as keyframes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul B Mahol <[email protected]>
  • Loading branch information
richardpl committed Apr 11, 2017
1 parent c61dc28 commit da2fd3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libavcodec/lcldec.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
return AVERROR_INVALIDDATA;
}

frame->key_frame = 1;
frame->pict_type = AV_PICTURE_TYPE_I;

*got_frame = 1;

/* always report that the buffer was completely consumed */
Expand Down

0 comments on commit da2fd3f

Please sign in to comment.