Crawl the lavc_video_codecs array for the proper codec
| 685 | |
| 686 | // Crawl the lavc_video_codecs array for the proper codec |
| 687 | AVCodecID FindCodecId(const CMediaType *mt) |
| 688 | { |
| 689 | for (int i = 0; i < countof(lavc_video_codecs); ++i) |
| 690 | { |
| 691 | if (mt->subtype == *lavc_video_codecs[i].clsMinorType) |
| 692 | { |
| 693 | return lavc_video_codecs[i].nFFCodec; |
| 694 | } |
| 695 | } |
| 696 | return AV_CODEC_ID_NONE; |
| 697 | } |
| 698 | |
| 699 | // Strings will be filled in eventually. |
| 700 | // AV_CODEC_ID_NONE means there is some special handling going on. |