Browse Source

flashsvenc: Keep coded_frame.key_frame a write-only variable

tags/n2.8
Vittorio Giovara 9 years ago
parent
commit
91f9b6579a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/flashsvenc.c

+ 1
- 1
libavcodec/flashsvenc.c View File

@@ -275,7 +275,7 @@ static int flashsv_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
avctx->coded_frame->key_frame = 0;
}

if (avctx->coded_frame->key_frame)
if (I_frame)
pkt->flags |= AV_PKT_FLAG_KEY;
*got_packet = 1;



Loading…
Cancel
Save