| 102 | } |
| 103 | |
| 104 | static void parse_avid(MJpegDecodeContext *s, uint8_t *buf, int len) |
| 105 | { |
| 106 | if (len > 12 && buf[12] == 1) /* 1 - NTSC */ |
| 107 | s->interlace_polarity = 1; |
| 108 | if (len > 12 && buf[12] == 2) /* 2 - PAL */ |
| 109 | s->interlace_polarity = 0; |
| 110 | if (s->avctx->debug & FF_DEBUG_PICT_INFO) |
| 111 | av_log(s->avctx, AV_LOG_INFO, "AVID: len:%d %d\n", len, len > 12 ? buf[12] : -1); |
| 112 | } |
| 113 | |
| 114 | static void init_idct(AVCodecContext *avctx) |
| 115 | { |
no test coverage detected