*/
#include "libavutil/intreadwrite.h"
-#include "libavutil/intfloat_readwrite.h"
+#include "libavutil/intfloat.h"
#include "avformat.h"
#include "internal.h"
#include "wtv.h"
{
WtvFile *wf = pb->opaque;
av_free(wf->sectors);
+ av_freep(&pb->opaque);
+ av_freep(&pb->buffer);
av_free(pb);
}
*/
static int oledate_to_iso8601(char *buf, int buf_size, int64_t value)
{
- time_t t = (av_int2dbl(value) - 25569.0) * 86400;
+ time_t t = (av_int2double(value) - 25569.0) * 86400;
struct tm *result= gmtime(&t);
if (!result)
return -1;
return;
}
} else if (!strcmp(key, "WM/WMRVBitrate"))
- snprintf(buf, buf_size, "%f", av_int2dbl(num));
+ snprintf(buf, buf_size, "%f", av_int2double(num));
else
snprintf(buf, buf_size, "%"PRIi64, num);
} else if (type == 5 && length == 2) {
}
st->codec->codec_type = codec_type;
st->need_parsing = AVSTREAM_PARSE_FULL;
- av_set_pts_info(st, 64, 1, 10000000);
+ avpriv_set_pts_info(st, 64, 1, 10000000);
return st;
}
static int read_close(AVFormatContext *s)
{
WtvContext *wtv = s->priv_data;
+ av_freep(&wtv->index_entries);
wtvfile_close(wtv->pb);
return 0;
}