2008-05-26 06:44:31 +03:00
|
|
|
/*
|
|
|
|
* FFM (ffserver live feed) muxer
|
2009-01-19 17:46:40 +02:00
|
|
|
* Copyright (c) 2001 Fabrice Bellard
|
2008-05-26 06:44:31 +03:00
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2009-01-12 00:19:48 +02:00
|
|
|
#include "libavutil/intreadwrite.h"
|
2011-11-27 17:04:16 +03:00
|
|
|
#include "libavutil/intfloat.h"
|
2012-06-16 18:59:01 +03:00
|
|
|
#include "libavutil/avassert.h"
|
2012-10-05 17:46:01 +03:00
|
|
|
#include "libavutil/parseutils.h"
|
2014-11-11 00:22:59 +02:00
|
|
|
#include "libavutil/opt.h"
|
2008-05-26 06:44:31 +03:00
|
|
|
#include "avformat.h"
|
2011-11-29 21:28:15 +03:00
|
|
|
#include "internal.h"
|
2008-05-26 06:44:31 +03:00
|
|
|
#include "ffm.h"
|
|
|
|
|
|
|
|
static void flush_packet(AVFormatContext *s)
|
|
|
|
{
|
|
|
|
FFMContext *ffm = s->priv_data;
|
|
|
|
int fill_size, h;
|
2011-02-20 12:04:12 +02:00
|
|
|
AVIOContext *pb = s->pb;
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
fill_size = ffm->packet_end - ffm->packet_ptr;
|
|
|
|
memset(ffm->packet_ptr, 0, fill_size);
|
|
|
|
|
2012-08-18 06:02:58 +03:00
|
|
|
av_assert1(avio_tell(pb) % ffm->packet_size == 0);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
/* put header */
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_wb16(pb, PACKET_ID);
|
|
|
|
avio_wb16(pb, fill_size);
|
|
|
|
avio_wb64(pb, ffm->dts);
|
2008-05-26 06:44:31 +03:00
|
|
|
h = ffm->frame_offset;
|
|
|
|
if (ffm->first_packet)
|
|
|
|
h |= 0x8000;
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_wb16(pb, h);
|
|
|
|
avio_write(pb, ffm->packet, ffm->packet_end - ffm->packet);
|
2011-03-14 21:39:06 +02:00
|
|
|
avio_flush(pb);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
/* prepare next packet */
|
|
|
|
ffm->frame_offset = 0; /* no key frame */
|
|
|
|
ffm->packet_ptr = ffm->packet;
|
|
|
|
ffm->first_packet = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 'first' is true if first data of a frame */
|
|
|
|
static void ffm_write_data(AVFormatContext *s,
|
|
|
|
const uint8_t *buf, int size,
|
2008-06-22 11:53:44 +03:00
|
|
|
int64_t dts, int header)
|
2008-05-26 06:44:31 +03:00
|
|
|
{
|
|
|
|
FFMContext *ffm = s->priv_data;
|
|
|
|
int len;
|
|
|
|
|
2008-06-22 03:26:25 +03:00
|
|
|
if (header && ffm->frame_offset == 0) {
|
2008-05-26 06:44:31 +03:00
|
|
|
ffm->frame_offset = ffm->packet_ptr - ffm->packet + FFM_HEADER_SIZE;
|
2008-06-22 11:53:44 +03:00
|
|
|
ffm->dts = dts;
|
2008-06-22 03:26:25 +03:00
|
|
|
}
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
/* write as many packets as needed */
|
|
|
|
while (size > 0) {
|
|
|
|
len = ffm->packet_end - ffm->packet_ptr;
|
|
|
|
if (len > size)
|
|
|
|
len = size;
|
|
|
|
memcpy(ffm->packet_ptr, buf, len);
|
|
|
|
|
|
|
|
ffm->packet_ptr += len;
|
|
|
|
buf += len;
|
|
|
|
size -= len;
|
2008-06-22 11:44:58 +03:00
|
|
|
if (ffm->packet_ptr >= ffm->packet_end)
|
2008-05-26 06:44:31 +03:00
|
|
|
flush_packet(s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-10-09 04:49:40 +03:00
|
|
|
static void write_header_chunk(AVIOContext *pb, AVIOContext *dpb, unsigned id)
|
|
|
|
{
|
|
|
|
uint8_t *dyn_buf;
|
|
|
|
int dyn_size= avio_close_dyn_buf(dpb, &dyn_buf);
|
|
|
|
avio_wb32(pb, id);
|
|
|
|
avio_wb32(pb, dyn_size);
|
|
|
|
avio_write(pb, dyn_buf, dyn_size);
|
|
|
|
av_free(dyn_buf);
|
|
|
|
}
|
|
|
|
|
2014-11-11 00:22:59 +02:00
|
|
|
static int ffm_write_header_codec_private_ctx(AVIOContext *pb, AVCodecContext *ctx, int type)
|
|
|
|
{
|
|
|
|
AVIOContext *tmp;
|
|
|
|
char *buf = NULL;
|
|
|
|
int ret;
|
|
|
|
const AVCodec *enc = ctx->codec ? ctx->codec : avcodec_find_encoder(ctx->codec_id);
|
|
|
|
|
|
|
|
if (!enc)
|
|
|
|
return AVERROR(EINVAL);
|
|
|
|
if (ctx->priv_data && enc->priv_class && enc->priv_data_size) {
|
|
|
|
if ((ret = av_opt_serialize(ctx->priv_data, AV_OPT_FLAG_ENCODING_PARAM | type,
|
|
|
|
AV_OPT_SERIALIZE_SKIP_DEFAULTS, &buf, '=', ',')) < 0)
|
|
|
|
return ret;
|
|
|
|
if (buf && strlen(buf)) {
|
|
|
|
if (avio_open_dyn_buf(&tmp) < 0) {
|
|
|
|
av_free(buf);
|
|
|
|
return AVERROR(ENOMEM);
|
|
|
|
}
|
|
|
|
avio_put_str(tmp, buf);
|
|
|
|
write_header_chunk(pb, tmp, MKBETAG('C', 'P', 'R', 'V'));
|
|
|
|
}
|
|
|
|
av_free(buf);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-11-11 09:20:02 +02:00
|
|
|
static int ffm_write_header_codec_ctx(AVIOContext *pb, AVCodecContext *ctx, unsigned tag, int type)
|
|
|
|
{
|
|
|
|
AVIOContext *tmp;
|
|
|
|
char *buf = NULL;
|
|
|
|
uint8_t *p = NULL;
|
|
|
|
int ret, need_coma = 0;
|
|
|
|
|
|
|
|
#define SKIP_DEFAULTS AV_OPT_SERIALIZE_SKIP_DEFAULTS
|
|
|
|
#define OPT_FLAGS_EXACT AV_OPT_SERIALIZE_OPT_FLAGS_EXACT
|
|
|
|
#define ENC AV_OPT_FLAG_ENCODING_PARAM
|
|
|
|
|
|
|
|
if (avio_open_dyn_buf(&tmp) < 0)
|
|
|
|
return AVERROR(ENOMEM);
|
|
|
|
if ((ret = av_opt_serialize(ctx, ENC | type, SKIP_DEFAULTS, &buf, '=', ',')) < 0)
|
|
|
|
goto fail;
|
|
|
|
if (buf && strlen(buf)) {
|
|
|
|
avio_write(tmp, buf, strlen(buf));
|
|
|
|
av_free(buf);
|
|
|
|
need_coma = 1;
|
|
|
|
}
|
|
|
|
if ((ret = av_opt_serialize(ctx, 0, SKIP_DEFAULTS | OPT_FLAGS_EXACT, &buf, '=', ',')) < 0)
|
|
|
|
goto fail;
|
|
|
|
if (buf && strlen(buf)) {
|
|
|
|
if (need_coma)
|
|
|
|
avio_w8(tmp, ',');
|
|
|
|
avio_write(tmp, buf, strlen(buf));
|
|
|
|
av_free(buf);
|
|
|
|
}
|
|
|
|
avio_w8(tmp, 0);
|
|
|
|
write_header_chunk(pb, tmp, tag);
|
|
|
|
return 0;
|
|
|
|
fail:
|
|
|
|
av_free(buf);
|
|
|
|
avio_close_dyn_buf(tmp, &p);
|
|
|
|
av_free(p);
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
#undef SKIP_DEFAULTS
|
|
|
|
#undef OPT_FLAGS_EXACT
|
|
|
|
#undef ENC
|
|
|
|
}
|
|
|
|
|
2014-11-16 22:55:14 +02:00
|
|
|
static int ffm_write_recommended_config(AVIOContext *pb, AVCodecContext *ctx, unsigned tag,
|
|
|
|
const char *configuration)
|
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
const AVCodec *enc = ctx->codec ? ctx->codec : avcodec_find_encoder(ctx->codec_id);
|
|
|
|
AVIOContext *tmp;
|
|
|
|
AVDictionaryEntry *t = NULL;
|
|
|
|
AVDictionary *all = NULL, *comm = NULL, *prv = NULL;
|
|
|
|
char *buf = NULL;
|
|
|
|
|
|
|
|
if (!enc || !enc->priv_class || !enc->priv_data_size) {
|
|
|
|
/* codec is not known/has no private options, so save everything as common options */
|
|
|
|
if (avio_open_dyn_buf(&tmp) < 0)
|
|
|
|
return AVERROR(ENOMEM);
|
|
|
|
avio_put_str(tmp, configuration);
|
|
|
|
write_header_chunk(pb, tmp, tag);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((ret = av_dict_parse_string(&all, configuration, "=", ",", 0)) < 0)
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
while ((t = av_dict_get(all, "", t, AV_DICT_IGNORE_SUFFIX))) {
|
|
|
|
if (av_opt_find((void *)&enc->priv_class, t->key, NULL, 0, AV_OPT_SEARCH_FAKE_OBJ)) {
|
|
|
|
if ((ret = av_dict_set(&prv, t->key, t->value, 0)) < 0)
|
|
|
|
goto fail;
|
|
|
|
} else if ((ret = av_dict_set(&comm, t->key, t->value, 0)) < 0)
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (comm) {
|
|
|
|
if ((ret = av_dict_get_string(comm, &buf, '=', ',')) < 0 ||
|
|
|
|
(ret = avio_open_dyn_buf(&tmp)) < 0)
|
|
|
|
goto fail;
|
|
|
|
avio_put_str(tmp, buf);
|
|
|
|
av_freep(&buf);
|
|
|
|
write_header_chunk(pb, tmp, tag);
|
|
|
|
}
|
|
|
|
if (prv) {
|
|
|
|
if ((ret = av_dict_get_string(prv, &buf, '=', ',')) < 0 ||
|
|
|
|
(ret = avio_open_dyn_buf(&tmp)) < 0)
|
|
|
|
goto fail;
|
|
|
|
avio_put_str(tmp, buf);
|
|
|
|
write_header_chunk(pb, tmp, MKBETAG('C', 'P', 'R', 'V'));
|
|
|
|
}
|
|
|
|
|
|
|
|
fail:
|
|
|
|
av_free(buf);
|
|
|
|
av_dict_free(&all);
|
|
|
|
av_dict_free(&comm);
|
|
|
|
av_dict_free(&prv);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2008-05-26 06:44:31 +03:00
|
|
|
static int ffm_write_header(AVFormatContext *s)
|
|
|
|
{
|
|
|
|
FFMContext *ffm = s->priv_data;
|
2012-10-05 17:46:01 +03:00
|
|
|
AVDictionaryEntry *t;
|
2008-05-26 06:44:31 +03:00
|
|
|
AVStream *st;
|
2011-02-20 12:04:12 +02:00
|
|
|
AVIOContext *pb = s->pb;
|
2008-05-26 06:44:31 +03:00
|
|
|
AVCodecContext *codec;
|
2014-11-11 00:22:59 +02:00
|
|
|
int bit_rate, i, ret;
|
2008-05-26 06:44:31 +03:00
|
|
|
|
2012-10-05 17:46:01 +03:00
|
|
|
if (t = av_dict_get(s->metadata, "creation_time", NULL, 0)) {
|
2014-11-11 00:22:59 +02:00
|
|
|
ret = av_parse_time(&ffm->start_time, t->value, 0);
|
2012-10-05 17:46:01 +03:00
|
|
|
if (ret < 0)
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2008-05-26 06:44:31 +03:00
|
|
|
ffm->packet_size = FFM_PACKET_SIZE;
|
|
|
|
|
|
|
|
/* header */
|
2012-10-09 04:49:40 +03:00
|
|
|
avio_wl32(pb, MKTAG('F', 'F', 'M', '2'));
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_wb32(pb, ffm->packet_size);
|
|
|
|
avio_wb64(pb, 0); /* current write position */
|
2008-05-26 06:44:31 +03:00
|
|
|
|
2012-10-09 04:49:40 +03:00
|
|
|
if(avio_open_dyn_buf(&pb) < 0)
|
|
|
|
return AVERROR(ENOMEM);
|
|
|
|
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_wb32(pb, s->nb_streams);
|
2008-05-26 06:44:31 +03:00
|
|
|
bit_rate = 0;
|
|
|
|
for(i=0;i<s->nb_streams;i++) {
|
|
|
|
st = s->streams[i];
|
|
|
|
bit_rate += st->codec->bit_rate;
|
|
|
|
}
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_wb32(pb, bit_rate);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
2012-10-09 04:49:40 +03:00
|
|
|
write_header_chunk(s->pb, pb, MKBETAG('M', 'A', 'I', 'N'));
|
|
|
|
|
2008-05-26 06:44:31 +03:00
|
|
|
/* list of streams */
|
|
|
|
for(i=0;i<s->nb_streams;i++) {
|
|
|
|
st = s->streams[i];
|
2011-11-29 21:28:15 +03:00
|
|
|
avpriv_set_pts_info(st, 64, 1, 1000000);
|
2012-10-09 04:49:40 +03:00
|
|
|
if(avio_open_dyn_buf(&pb) < 0)
|
|
|
|
return AVERROR(ENOMEM);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
codec = st->codec;
|
|
|
|
/* generic info */
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_wb32(pb, codec->codec_id);
|
|
|
|
avio_w8(pb, codec->codec_type);
|
|
|
|
avio_wb32(pb, codec->bit_rate);
|
|
|
|
avio_wb32(pb, codec->flags);
|
|
|
|
avio_wb32(pb, codec->flags2);
|
|
|
|
avio_wb32(pb, codec->debug);
|
2012-10-09 04:49:40 +03:00
|
|
|
if (codec->flags & CODEC_FLAG_GLOBAL_HEADER) {
|
|
|
|
avio_wb32(pb, codec->extradata_size);
|
|
|
|
avio_write(pb, codec->extradata, codec->extradata_size);
|
|
|
|
}
|
|
|
|
write_header_chunk(s->pb, pb, MKBETAG('C', 'O', 'M', 'M'));
|
2008-05-26 06:44:31 +03:00
|
|
|
/* specific info */
|
|
|
|
switch(codec->codec_type) {
|
2010-03-31 02:30:55 +03:00
|
|
|
case AVMEDIA_TYPE_VIDEO:
|
2014-11-16 22:55:14 +02:00
|
|
|
if (st->recommended_encoder_configuration) {
|
|
|
|
av_log(NULL, AV_LOG_DEBUG, "writing recommended configuration: %s\n",
|
|
|
|
st->recommended_encoder_configuration);
|
|
|
|
if ((ret = ffm_write_recommended_config(s->pb, codec, MKBETAG('S', '2', 'V', 'I'),
|
|
|
|
st->recommended_encoder_configuration)) < 0)
|
|
|
|
return ret;
|
|
|
|
} else if ((ret = ffm_write_header_codec_ctx(s->pb, codec, MKBETAG('S', '2', 'V', 'I'), AV_OPT_FLAG_VIDEO_PARAM)) < 0 ||
|
|
|
|
(ret = ffm_write_header_codec_private_ctx(s->pb, codec, AV_OPT_FLAG_VIDEO_PARAM)) < 0)
|
2014-11-11 00:22:59 +02:00
|
|
|
return ret;
|
2008-05-26 06:44:31 +03:00
|
|
|
break;
|
2010-03-31 02:30:55 +03:00
|
|
|
case AVMEDIA_TYPE_AUDIO:
|
2014-11-16 22:55:14 +02:00
|
|
|
if (st->recommended_encoder_configuration) {
|
|
|
|
av_log(NULL, AV_LOG_DEBUG, "writing recommended configuration: %s\n",
|
|
|
|
st->recommended_encoder_configuration);
|
|
|
|
if ((ret = ffm_write_recommended_config(s->pb, codec, MKBETAG('S', '2', 'A', 'U'),
|
|
|
|
st->recommended_encoder_configuration)) < 0)
|
|
|
|
return ret;
|
|
|
|
} else if ((ret = ffm_write_header_codec_ctx(s->pb, codec, MKBETAG('S', '2', 'A', 'U'), AV_OPT_FLAG_AUDIO_PARAM)) < 0 ||
|
|
|
|
(ret = ffm_write_header_codec_private_ctx(s->pb, codec, AV_OPT_FLAG_AUDIO_PARAM)) < 0)
|
2014-11-11 00:22:59 +02:00
|
|
|
return ret;
|
2008-05-26 06:44:31 +03:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
2012-10-09 04:49:40 +03:00
|
|
|
pb = s->pb;
|
|
|
|
|
|
|
|
avio_wb64(pb, 0); // end of header
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
/* flush until end of block reached */
|
2011-03-03 21:11:45 +02:00
|
|
|
while ((avio_tell(pb) % ffm->packet_size) != 0)
|
2011-02-21 20:28:17 +02:00
|
|
|
avio_w8(pb, 0);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
2011-03-14 21:39:06 +02:00
|
|
|
avio_flush(pb);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
/* init packet mux */
|
|
|
|
ffm->packet_ptr = ffm->packet;
|
|
|
|
ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE;
|
2012-06-16 18:59:01 +03:00
|
|
|
av_assert0(ffm->packet_end >= ffm->packet);
|
2008-05-26 06:44:31 +03:00
|
|
|
ffm->frame_offset = 0;
|
2008-06-22 11:53:44 +03:00
|
|
|
ffm->dts = 0;
|
2008-05-26 06:44:31 +03:00
|
|
|
ffm->first_packet = 1;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|
|
|
{
|
2012-10-05 17:46:01 +03:00
|
|
|
FFMContext *ffm = s->priv_data;
|
2008-06-22 11:50:57 +03:00
|
|
|
int64_t dts;
|
2008-06-28 00:42:08 +03:00
|
|
|
uint8_t header[FRAME_HEADER_SIZE+4];
|
2008-06-09 10:43:14 +03:00
|
|
|
int header_size = FRAME_HEADER_SIZE;
|
2008-05-26 06:44:31 +03:00
|
|
|
|
2012-10-05 17:46:01 +03:00
|
|
|
dts = ffm->start_time + pkt->dts;
|
2008-05-26 06:44:31 +03:00
|
|
|
/* packet size & key_frame */
|
|
|
|
header[0] = pkt->stream_index;
|
|
|
|
header[1] = 0;
|
2010-03-31 15:29:58 +03:00
|
|
|
if (pkt->flags & AV_PKT_FLAG_KEY)
|
2008-05-26 06:44:31 +03:00
|
|
|
header[1] |= FLAG_KEY_FRAME;
|
|
|
|
AV_WB24(header+2, pkt->size);
|
|
|
|
AV_WB24(header+5, pkt->duration);
|
2012-10-05 17:46:01 +03:00
|
|
|
AV_WB64(header+8, ffm->start_time + pkt->pts);
|
2008-06-09 10:43:14 +03:00
|
|
|
if (pkt->pts != pkt->dts) {
|
|
|
|
header[1] |= FLAG_DTS;
|
|
|
|
AV_WB32(header+16, pkt->pts - pkt->dts);
|
|
|
|
header_size += 4;
|
|
|
|
}
|
2008-06-22 11:50:57 +03:00
|
|
|
ffm_write_data(s, header, header_size, dts, 1);
|
|
|
|
ffm_write_data(s, pkt->data, pkt->size, dts, 0);
|
2008-05-26 06:44:31 +03:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int ffm_write_trailer(AVFormatContext *s)
|
|
|
|
{
|
|
|
|
FFMContext *ffm = s->priv_data;
|
|
|
|
|
|
|
|
/* flush packets */
|
|
|
|
if (ffm->packet_ptr > ffm->packet)
|
|
|
|
flush_packet(s);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2011-01-26 00:03:28 +02:00
|
|
|
AVOutputFormat ff_ffm_muxer = {
|
2011-07-16 23:18:12 +03:00
|
|
|
.name = "ffm",
|
2012-07-31 00:04:28 +03:00
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("FFM (FFserver live feed)"),
|
2011-07-16 23:18:12 +03:00
|
|
|
.extensions = "ffm",
|
|
|
|
.priv_data_size = sizeof(FFMContext),
|
2012-08-05 12:11:04 +03:00
|
|
|
.audio_codec = AV_CODEC_ID_MP2,
|
|
|
|
.video_codec = AV_CODEC_ID_MPEG1VIDEO,
|
2011-07-16 23:18:12 +03:00
|
|
|
.write_header = ffm_write_header,
|
|
|
|
.write_packet = ffm_write_packet,
|
|
|
|
.write_trailer = ffm_write_trailer,
|
2013-04-03 15:11:10 +03:00
|
|
|
.flags = AVFMT_TS_NEGATIVE,
|
2008-05-26 06:44:31 +03:00
|
|
|
};
|