Revision 3262ed44
chunker_player/libav-compat.h | ||
---|---|---|
1 |
#ifndef MAX_STREAMS |
|
2 |
#define MAX_STREAMS 20 |
|
3 |
#endif |
|
4 |
#ifndef CODEC_TYPE_VIDEO |
|
5 |
#define CODEC_TYPE_VIDEO AVMEDIA_TYPE_VIDEO |
|
6 |
#define CODEC_TYPE_AUDIO AVMEDIA_TYPE_AUDIO |
|
7 |
#endif |
|
8 |
#ifdef AVIO_FLAG_WRITE |
|
9 |
#undef URL_WRONLY |
|
10 |
#define URL_WRONLY AVIO_FLAG_WRITE |
|
11 |
#endif |
chunker_player/player_core.c | ||
---|---|---|
9 | 9 |
#include <libavcodec/avcodec.h> |
10 | 10 |
#include <libavformat/avformat.h> |
11 | 11 |
#include <libswscale/swscale.h> |
12 |
#include "libav-compat.h" |
|
12 | 13 |
|
13 | 14 |
#include <stdio.h> |
14 | 15 |
#include <unistd.h> |
Also available in: Unified diff