#include <AL/alc.h>
#include "libavutil/opt.h"
+#include "libavformat/internal.h"
#include "avdevice.h"
typedef struct {
if (error = al_get_error(ad->device, &error_msg)) goto fail;
/* Create stream */
- if (!(st = av_new_stream(ctx, 0))) {
+ if (!(st = avformat_new_stream(ctx, NULL))) {
error = AVERROR(ENOMEM);
goto fail;
}
/* We work in microseconds */
- av_set_pts_info(st, 64, 1, 1000000);
+ avpriv_set_pts_info(st, 64, 1, 1000000);
/* Set codec parameters */
codec = st->codec;