|
|
@ -51,11 +51,11 @@ static int sws_flags = SWS_BICUBIC; |
|
|
|
/**************************************************************/ |
|
|
|
/**************************************************************/ |
|
|
|
/* audio output */ |
|
|
|
/* audio output */ |
|
|
|
|
|
|
|
|
|
|
|
float t, tincr, tincr2; |
|
|
|
static float t, tincr, tincr2; |
|
|
|
int16_t *samples; |
|
|
|
static int16_t *samples; |
|
|
|
uint8_t *audio_outbuf; |
|
|
|
static uint8_t *audio_outbuf; |
|
|
|
int audio_outbuf_size; |
|
|
|
static int audio_outbuf_size; |
|
|
|
int audio_input_frame_size; |
|
|
|
static int audio_input_frame_size; |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* add an audio output stream |
|
|
|
* add an audio output stream |
|
|
@ -190,9 +190,9 @@ static void close_audio(AVFormatContext *oc, AVStream *st) |
|
|
|
/**************************************************************/ |
|
|
|
/**************************************************************/ |
|
|
|
/* video output */ |
|
|
|
/* video output */ |
|
|
|
|
|
|
|
|
|
|
|
AVFrame *picture, *tmp_picture; |
|
|
|
static AVFrame *picture, *tmp_picture; |
|
|
|
uint8_t *video_outbuf; |
|
|
|
static uint8_t *video_outbuf; |
|
|
|
int frame_count, video_outbuf_size; |
|
|
|
static int frame_count, video_outbuf_size; |
|
|
|
|
|
|
|
|
|
|
|
/* add a video output stream */ |
|
|
|
/* add a video output stream */ |
|
|
|
static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id) |
|
|
|
static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id) |
|
|
|