[PATCH 1/3] lavf: put av_new_stream() compatibility wraper back
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavformat/utils.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index d974ccd..760ed0a 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2744,6 +2744,16 @@ void avformat_close_input(AVFormatContext **ps) avio_close(pb); } +#if FF_API_NEW_STREAM +AVStream *av_new_stream(AVFormatContext *s, int id) +{ + AVStream *st = avformat_new_stream(s, NULL); + if (st) + st->id = id; + return st; +} +#endif + AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c) { AVStream *st; -- 1.7.5.4
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavcodec/mpeg12.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 1dae17f..4875798 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1497,7 +1497,7 @@ static int load_matrix(MpegEncContext *s, uint16_t matrix0[64], uint16_t matrix1 return -1; } if (intra && i == 0 && v != 8) { - av_log(s->avctx, AV_LOG_ERROR, "intra matrix invalid, ignoring\n"); + av_log(s->avctx, AV_LOG_ERROR, "intra matrix DC is %d, invalid, ignoring\n", v); v = 8; // needed by pink.mpg / issue1046 } matrix0[j] = v; -- 1.7.5.4
there is a 'g' too much in "print" in the subject. On 6 Feb 2012, at 17:36, Michael Niedermayer <michaelni@gmx.at> wrote:
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavcodec/mpeg12.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 1dae17f..4875798 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1497,7 +1497,7 @@ static int load_matrix(MpegEncContext *s, uint16_t matrix0[64], uint16_t matrix1 return -1; } if (intra && i == 0 && v != 8) { - av_log(s->avctx, AV_LOG_ERROR, "intra matrix invalid, ignoring\n"); + av_log(s->avctx, AV_LOG_ERROR, "intra matrix DC is %d, invalid, ignoring\n", v);
IMO it is more readable as "intra matrix specifies invalid DC quantizer %d, ignoring" or something like that (that it is a quantizer is just a guess).
On Mon, Feb 06, 2012 at 08:02:03PM +0100, Reimar Döffinger wrote:
there is a 'g' too much in "print" in the subject.
On 6 Feb 2012, at 17:36, Michael Niedermayer <michaelni@gmx.at> wrote:
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavcodec/mpeg12.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 1dae17f..4875798 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1497,7 +1497,7 @@ static int load_matrix(MpegEncContext *s, uint16_t matrix0[64], uint16_t matrix1 return -1; } if (intra && i == 0 && v != 8) { - av_log(s->avctx, AV_LOG_ERROR, "intra matrix invalid, ignoring\n"); + av_log(s->avctx, AV_LOG_ERROR, "intra matrix DC is %d, invalid, ignoring\n", v);
IMO it is more readable as "intra matrix specifies invalid DC quantizer %d, ignoring"
changed locally [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In a rich man's house there is no place to spit but his face. -- Diogenes of Sinope
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavformat/utils.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 760ed0a..71baf58 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2246,6 +2246,13 @@ static int tb_unreliable(AVCodecContext *c){ return 0; } +#if FF_API_FORMAT_PARAMETERS +int av_find_stream_info(AVFormatContext *ic) +{ + return avformat_find_stream_info(ic, NULL); +} +#endif + int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) { int i, count, ret, read_size, j; -- 1.7.5.4
On Mon, Feb 06, 2012 at 05:36:13PM +0100, Michael Niedermayer wrote:
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavformat/utils.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
ill apply this patchset soon if there are no more comments [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Awnsering whenever a program halts or runs forever is On a turing machine, in general impossible (turings halting problem). On any real computer, always possible as a real computer has a finite number of states N, and will either halt in less than N cycles or never halt.
On Tue, Feb 07, 2012 at 09:58:07PM +0100, Michael Niedermayer wrote:
On Mon, Feb 06, 2012 at 05:36:13PM +0100, Michael Niedermayer wrote:
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> --- libavformat/utils.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
ill apply this patchset soon if there are no more comments
patchset applied [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Democracy is the form of government in which you can choose your dictator
participants (2)
-
Michael Niedermayer -
Reimar Döffinger