summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-02 12:48:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-02 12:49:49 +0200
commit8b11ce713750776f1ad41c0a178b7494fa6ae827 (patch)
tree082d247c67fd3972ad1d54dfd96e2981661b01b0 /libavcodec
parent9f56aceaec5c2e2acd3df91527c95d14ac910bdc (diff)
avcodec/libutvideoenc: Remove coded_frame usage
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libutvideoenc.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp
index 8ad6e7c385..87462470e2 100644
--- a/libavcodec/libutvideoenc.cpp
+++ b/libavcodec/libutvideoenc.cpp
@@ -198,8 +198,6 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
* assert that this is true.
*/
av_assert2(keyframe == true);
- avctx->coded_frame->key_frame = 1;
- avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
pkt->flags |= AV_PKT_FLAG_KEY;
*got_packet = 1;
@@ -224,7 +222,7 @@ AVCodec ff_libutvideo_encoder = {
NULL_IF_CONFIG_SMALL("Ut Video"),
AVMEDIA_TYPE_VIDEO,
AV_CODEC_ID_UTVIDEO,
- AV_CODEC_CAP_AUTO_THREADS | AV_CODEC_CAP_LOSSLESS,
+ AV_CODEC_CAP_AUTO_THREADS | AV_CODEC_CAP_LOSSLESS | AV_CODEC_CAP_INTRA_ONLY,
NULL, /* supported_framerates */
(const enum AVPixelFormat[]) {
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUYV422, AV_PIX_FMT_BGR24,