Package: lives Severity: important Version: 2.0.6~ds0-1 Tags: patch Dear Maintainer, I believe lives port to libav9 is incomplete, as build logs indicate plenty of implicitly defined functions of deprecated libav APIs.
You can see some of them picked up by the automatic log scanner: http://qa.debian.org/bls/packages/l/lives.html I've started porting lives to libav 9, here is (probably incomplete) patch. Regards, Dmitrijs. ===File /tmp/lives-2.0.6~ds0/debian/patches/more-libav9.patch=== Description: Partial patch porting to libav 9. Author: Dmitrijs Ledkovs <x...@ubuntu.com> --- lives-2.0.6~ds0.orig/lives-plugins/plugins/decoders/flv_decoder.c +++ lives-2.0.6~ds0/lives-plugins/plugins/decoders/flv_decoder.c @@ -754,7 +754,7 @@ static boolean attach_stream(lives_clip_ if (!hasaudio) got_astream=TRUE; - priv->ctx=ctx = avcodec_alloc_context(); + priv->ctx=ctx = avcodec_alloc_context3(NULL); sprintf(cdata->audio_name,"%s",""); --- lives-2.0.6~ds0.orig/lives-plugins/plugins/decoders/asf_decoder.c +++ lives-2.0.6~ds0/lives-plugins/plugins/decoders/asf_decoder.c @@ -1106,7 +1106,7 @@ static boolean attach_stream(lives_clip_ pos1 = priv->input_position; - priv->st = av_new_stream(priv->s, 0); + priv->st = avformat_new_stream(priv->s, NULL); if (!priv->st) { fprintf(stderr, "asf_decoder: Unable to create new stream for %s\n",cdata->URI); --- lives-2.0.6~ds0.orig/lives-plugins/plugins/decoders/mpegts_decoder.c +++ lives-2.0.6~ds0/lives-plugins/plugins/decoders/mpegts_decoder.c @@ -1008,7 +1008,7 @@ static int mpegts_set_stream_info(lives_ return AVERROR(ENOMEM); memcpy(sub_pes, pes, sizeof(*sub_pes)); - sub_st = av_new_stream(pes->stream, pes->pid); + sub_st = avformat_new_stream(pes->stream, NULL); if (!sub_st) { av_free(sub_pes); return AVERROR(ENOMEM); @@ -1191,7 +1191,7 @@ static int mpegts_push_data(lives_clip_d /* stream not present in PMT */ if (!pes->st) { - pes->st = av_new_stream(ts->stream, pes->pid); + pes->st = avformat_new_stream(ts->stream, NULL); if (!pes->st) return AVERROR(ENOMEM); pes->st->id = pes->pid; @@ -1989,7 +1989,7 @@ static void pmt_cb(lives_clip_data_t *cd if (ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES) { pes = ts->pids[pid]->u.pes_filter.opaque; if (!pes->st) { - pes->st = av_new_stream(pes->stream, pes->pid); + pes->st = avformat_new_stream(pes->stream, NULL); pes->st->id = pes->pid; } st = pes->st; @@ -1997,7 +1997,7 @@ static void pmt_cb(lives_clip_data_t *cd if (ts->pids[pid]) mpegts_close_filter(ts, ts->pids[pid]); //wrongly added sdt filter probably pes = add_pes_stream(ts, pid, pcr_pid); if (pes) { - st = av_new_stream(pes->stream, pes->pid); + st = avformat_new_stream(pes->stream, NULL); st->id = pes->pid; } } else { @@ -2005,7 +2005,7 @@ static void pmt_cb(lives_clip_data_t *cd if (idx >= 0) { st = ts->stream->streams[idx]; } else { - st = av_new_stream(pes->stream, pid); + st = avformat_new_stream(pes->stream, NULL); st->id = pid; st->codec->codec_type = AVMEDIA_TYPE_DATA; } @@ -2536,7 +2536,7 @@ static int lives_mpegts_read_header(live /* only read packets */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) goto fail; av_set_pts_info(st, 60, 1, 27000000); @@ -3064,7 +3064,7 @@ static boolean attach_stream(lives_clip_ return FALSE; } - priv->ctx = ctx = avcodec_alloc_context(); + priv->ctx = ctx = avcodec_alloc_context3(NULL); if (avcodec_open(ctx, codec) < 0) { fprintf(stderr, "mpegts_decoder: Could not open avcodec context\n"); --- lives-2.0.6~ds0.orig/lives-plugins/plugins/decoders/mkv_decoder.c +++ lives-2.0.6~ds0/lives-plugins/plugins/decoders/mkv_decoder.c @@ -1429,7 +1429,7 @@ static int lives_mkv_read_header(lives_c } } - st = track->stream = av_new_stream(s, 0); + st = track->stream = avformat_new_stream(s, NULL); if (st == NULL) { fprintf(stderr, "mkv_decoder: Out of memory\n"); @@ -1748,7 +1748,7 @@ static boolean attach_stream(lives_clip_ return FALSE; } - priv->ctx = ctx = avcodec_alloc_context(); + priv->ctx = ctx = avcodec_alloc_context3(NULL); if (avcodec_open(ctx, codec) < 0) { fprintf(stderr, "mkv_decoder: Could not open avcodec context for codec\n"); ============================================================ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org