| @@ -38,14 +38,20 @@ static const AVCodecDescriptor codec_descriptors[] = { · 37 unmodified lines |
| 38 | 38 | .type = AVMEDIA_TYPE_VIDEO, |
| 39 | 39 | .name = "mpeg1video", |
| 40 | 40 | .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
| 41 | | − .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER, |
| 41 | + .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER | |
| 42 | + // FIXME this is strigly speaking not true, as MPEG-1 does |
| 43 | + // not allow field coding, but our mpeg12 code (decoder and |
| 44 | + // parser) can sometimes change codec id at runtime, so |
| 45 | + // this is safer |
| 46 | + AV_CODEC_PROP_FIELDS, |
| 42 | 47 | }, |
| 43 | 48 | { |
| 44 | 49 | .id = AV_CODEC_ID_MPEG2VIDEO, |
| 45 | 50 | .type = AVMEDIA_TYPE_VIDEO, |
| 46 | 51 | .name = "mpeg2video", |
| 47 | 52 | .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
| 48 | | − .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER, |
| 53 | + .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER | |
| 54 | + AV_CODEC_PROP_FIELDS, |
| 49 | 55 | .profiles = NULL_IF_CONFIG_SMALL(ff_mpeg2_video_profiles), |
| 50 | 56 | }, |
| 51 | 57 | { |
| @@ -225,7 +231,8 @@ static const AVCodecDescriptor codec_descriptors[] = { · 173 unmodified lines |
| 225 | 231 | .type = AVMEDIA_TYPE_VIDEO, |
| 226 | 232 | .name = "h264", |
| 227 | 233 | .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), |
| 228 | | − .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS | AV_CODEC_PROP_REORDER, |
| 234 | + .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS | |
| 235 | + AV_CODEC_PROP_REORDER | AV_CODEC_PROP_FIELDS, |
| 229 | 236 | .profiles = NULL_IF_CONFIG_SMALL(ff_h264_profiles), |
| 230 | 237 | }, |
| 231 | 238 | { |
| @@ -529,7 +536,8 @@ static const AVCodecDescriptor codec_descriptors[] = { · 297 unmodified lines |
| 529 | 536 | .type = AVMEDIA_TYPE_VIDEO, |
| 530 | 537 | .name = "vc1", |
| 531 | 538 | .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1"), |
| 532 | | − .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER, |
| 539 | + .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER | |
| 540 | + AV_CODEC_PROP_FIELDS, |
| 533 | 541 | .profiles = NULL_IF_CONFIG_SMALL(ff_vc1_profiles), |
| 534 | 542 | }, |
| 535 | 543 | { |