codec_desc: mark fraps as an intra-only codec.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 28 Mar 2017 23:40:59 +0000 (19:40 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 31 Mar 2017 12:26:23 +0000 (08:26 -0400)
Fixes reported race conditions by tsan in fate-avio-direct.

libavcodec/codec_desc.c

index 4e98cf9..9711019 100644 (file)
@@ -520,7 +520,7 @@ static const AVCodecDescriptor codec_descriptors[] = {
         .type      = AVMEDIA_TYPE_VIDEO,
         .name      = "fraps",
         .long_name = NULL_IF_CONFIG_SMALL("Fraps"),
-        .props     = AV_CODEC_PROP_LOSSLESS,
+        .props     = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS,
     },
     {
         .id        = AV_CODEC_ID_TRUEMOTION2,