Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-09-03 Thread Ronald S. Bultje
Hi, On Sat, Sep 3, 2011 at 5:17 AM, Felipe Contreras wrote: > On Tue, Aug 30, 2011 at 1:09 PM, Luca Barbato wrote: >> On 8/30/11 6:41 AM, Uoti Urpala wrote: >>> >>> Note that it isn't "this code" (as in the reverted code) that sets it to >>> a wrong value. The code setting it is in avcodec_open2

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-09-03 Thread Felipe Contreras
On Tue, Aug 30, 2011 at 1:09 PM, Luca Barbato wrote: > On 8/30/11 6:41 AM, Uoti Urpala wrote: >> >> Note that it isn't "this code" (as in the reverted code) that sets it to >> a wrong value. The code setting it is in avcodec_open2(), which >> initially sets width to equal coded_width; this is prob

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-30 Thread Måns Rullgård
"Ronald S. Bultje" writes: > Hi, > > On Mon, Aug 29, 2011 at 8:16 PM, Uoti Urpala wrote: >> On Mon, 2011-08-29 at 19:48 -0700, Ronald S. Bultje wrote: >>> On Mon, Aug 29, 2011 at 7:06 PM, Uoti Urpala >>> wrote: >> >>> > The actual problem here was that an application was using avctx->height >>

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-30 Thread Luca Barbato
On 8/30/11 6:41 AM, Uoti Urpala wrote: Note that it isn't "this code" (as in the reverted code) that sets it to a wrong value. The code setting it is in avcodec_open2(), which initially sets width to equal coded_width; this is probably currently needed for codecs like raw that do not themselves i

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-29 Thread Uoti Urpala
On Mon, 2011-08-29 at 21:04 -0700, Ronald S. Bultje wrote: > Libavcodec expects values to be set as they would be by libavformat, > be that in practice done by mplayer or libavformat or whatever the > demuxer-of-the-day is. It's probably underdocumented, but that doesn't > make it any less true. W

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-29 Thread Ronald S. Bultje
Hi, On Mon, Aug 29, 2011 at 8:16 PM, Uoti Urpala wrote: > On Mon, 2011-08-29 at 19:48 -0700, Ronald S. Bultje wrote: >> On Mon, Aug 29, 2011 at 7:06 PM, Uoti Urpala wrote: > >> > The actual problem here was that an application was using avctx->height >> > immediately after avcodec_open2(). The h

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-29 Thread Uoti Urpala
On Mon, 2011-08-29 at 19:48 -0700, Ronald S. Bultje wrote: > On Mon, Aug 29, 2011 at 7:06 PM, Uoti Urpala wrote: > > The actual problem here was that an application was using avctx->height > > immediately after avcodec_open2(). The h264 decoder and others do not > > set width/height until after a

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-29 Thread Ronald S. Bultje
Hi, On Mon, Aug 29, 2011 at 7:06 PM, Uoti Urpala wrote: > On Mon, 2011-08-29 at 03:15 +0300, Uoti Urpala wrote: >> On Mon, 2011-08-29 at 01:13 +0200, Luca Barbato wrote: >> > Currently we are misreporting the uncropped/multiple-of-macroblocks h264 >> > dimensions as the image dimensions. That is

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-29 Thread Uoti Urpala
On Mon, 2011-08-29 at 03:15 +0300, Uoti Urpala wrote: > On Mon, 2011-08-29 at 01:13 +0200, Luca Barbato wrote: > > Currently we are misreporting the uncropped/multiple-of-macroblocks h264 > > dimensions as the image dimensions. That is bogus and wrong. > > I think it's quite a stretch to claim th

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Uoti Urpala
On Mon, 2011-08-29 at 01:13 +0200, Luca Barbato wrote: > On 8/29/11 12:59 AM, Uoti Urpala wrote: > > So you want to delete any indication of cropping (keep cropped width > > only)? I think the width before cropping is meaningful information. > > Currently we are misreporting the uncropped/multiple

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Ronald S. Bultje
Hi, On Sun, Aug 28, 2011 at 3:59 PM, Uoti Urpala wrote: > On Sun, 2011-08-28 at 23:47 +0200, Luca Barbato wrote: >> On 8/21/11 6:27 PM, Luca Barbato wrote: >> > This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. >> > >> > coded_{width, height} overwrites width and height in avcodec_ope

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Luca Barbato
On 8/29/11 12:59 AM, Uoti Urpala wrote: So you want to delete any indication of cropping (keep cropped width only)? I think the width before cropping is meaningful information. Currently we are misreporting the uncropped/multiple-of-macroblocks h264 dimensions as the image dimensions. That is

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Uoti Urpala
On Sun, 2011-08-28 at 23:47 +0200, Luca Barbato wrote: > On 8/21/11 6:27 PM, Luca Barbato wrote: > > This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. > > > > coded_{width, height} overwrites width and height in avcodec_open > > --- > > > > I'm not sure if the avcodec_open behaviour is

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Ronald S. Bultje
Hi, On Sun, Aug 28, 2011 at 2:47 PM, Luca Barbato wrote: > On 8/21/11 6:27 PM, Luca Barbato wrote: >> >> This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. >> >> coded_{width, height} overwrites width and height in avcodec_open >> --- >> >> I'm not sure if the avcodec_open behaviour is

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Luca Barbato
On 8/21/11 6:27 PM, Luca Barbato wrote: This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. coded_{width, height} overwrites width and height in avcodec_open --- I'm not sure if the avcodec_open behaviour is the expected one or not, but seems correct according our doxy on width,height

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread Luca Barbato
On 8/28/11 9:47 AM, aviad rozenhek wrote: ok, here's same patch without public api That makes me think there are cases in which we are calling this function twice. Looks like the logic issue we are trying to address is hiding a larger fault. lu __

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-28 Thread aviad rozenhek
On Fri, Aug 26, 2011 at 00:47, Luca Barbato wrote: > On 8/25/11 6:04 PM, aviad rozenhek wrote: > >> On Wed, Aug 24, 2011 at 11:42, aviad rozenhek wrote: >> >> On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: >>> >>> On 8/22/11 9:05 PM, Måns Rullgård wrote: Luca Barbato writes:

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-25 Thread Luca Barbato
On 8/25/11 6:04 PM, aviad rozenhek wrote: On Wed, Aug 24, 2011 at 11:42, aviad rozenhek wrote: On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: On 8/22/11 9:05 PM, Måns Rullgård wrote: Luca Barbato writes: On 8/22/11 4:04 PM, Måns Rullgård wrote: Luca Barbatowrites: On 8/

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-25 Thread aviad rozenhek
On Wed, Aug 24, 2011 at 11:42, aviad rozenhek wrote: > On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: > >> On 8/22/11 9:05 PM, Måns Rullgård wrote: >> >>> Luca Barbato writes: >>> >>> On 8/22/11 4:04 PM, Måns Rullgård wrote: > Luca Barbato writes: > > On 8/22/11 11:54 A

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-24 Thread Måns Rullgård
Luca Barbato writes: > On 8/24/11 12:43 PM, Måns Rullgård wrote: >> Luca Barbato writes: >> >>> On 8/24/11 10:42 AM, aviad rozenhek wrote: On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: >>> >>> That might be a good idea, btw, what are we doing regarding lowres? >> >> I still want to d

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-24 Thread Luca Barbato
On 8/24/11 12:43 PM, Måns Rullgård wrote: Luca Barbato writes: On 8/24/11 10:42 AM, aviad rozenhek wrote: On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: That might be a good idea, btw, what are we doing regarding lowres? I still want to delete it, and I have still not heard of anyon

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-24 Thread Måns Rullgård
Luca Barbato writes: > On 8/24/11 10:42 AM, aviad rozenhek wrote: >> On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: > > That might be a good idea, btw, what are we doing regarding lowres? I still want to delete it, and I have still not heard of anyone actually using it (speculations regardi

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-24 Thread Luca Barbato
On 8/24/11 10:42 AM, aviad rozenhek wrote: On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: That might be a good idea, btw, what are we doing regarding lowres? lu ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-24 Thread aviad rozenhek
On Mon, Aug 22, 2011 at 23:39, Luca Barbato wrote: > On 8/22/11 9:05 PM, Måns Rullgård wrote: > >> Luca Barbato writes: >> >> On 8/22/11 4:04 PM, Måns Rullgård wrote: >>> Luca Barbato writes: On 8/22/11 11:54 AM, Måns Rullgård wrote: > >> But that *is* the coded width/

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-23 Thread Måns Rullgård
Tomas Härdin writes: > Måns Rullgård skrev 2011-08-22 18:05: >> Tomas Härdin writes: >> >>> Måns Rullgård skrev 2011-08-22 16:04: Luca Barbato writes: > On 8/22/11 11:54 AM, Måns Rullgård wrote: >> But that *is* the coded width/height. Using those as display >> width/hei

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-23 Thread Tomas Härdin
Måns Rullgård skrev 2011-08-22 18:05: Tomas Härdin writes: Måns Rullgård skrev 2011-08-22 16:04: Luca Barbato writes: On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. then we have a documentation hole, which

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Luca Barbato
On 8/22/11 9:05 PM, Måns Rullgård wrote: Luca Barbato writes: On 8/22/11 4:04 PM, Måns Rullgård wrote: Luca Barbato writes: On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. then we have a documentation hole,

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Måns Rullgård
Luca Barbato writes: > On 8/22/11 4:04 PM, Måns Rullgård wrote: >> Luca Barbato writes: >> >>> On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. >>> >>> then we have a documentation hole, which field contains

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Luca Barbato
On 8/22/11 4:04 PM, Måns Rullgård wrote: Luca Barbato writes: On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. then we have a documentation hole, which field contains the correct values? Both are correct but fo

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Måns Rullgård
Tomas Härdin writes: > Måns Rullgård skrev 2011-08-22 16:04: >> Luca Barbato writes: >> >>> On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. >>> >>> then we have a documentation hole, which field contains th

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Tomas Härdin
Måns Rullgård skrev 2011-08-22 16:04: Luca Barbato writes: On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. then we have a documentation hole, which field contains the correct values? Both are correct but for d

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Måns Rullgård
Luca Barbato writes: > On 8/22/11 11:54 AM, Måns Rullgård wrote: >> But that *is* the coded width/height. Using those as display >> width/height is broken. > > then we have a documentation hole, which field contains the correct values? Both are correct but for different things. coded_{width,he

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Luca Barbato
On 8/22/11 11:54 AM, Måns Rullgård wrote: But that *is* the coded width/height. Using those as display width/height is broken. then we have a documentation hole, which field contains the correct values? lu ___ libav-devel mailing list libav-devel@

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread Måns Rullgård
Luca Barbato writes: > This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. > > coded_{width, height} overwrites width and height in avcodec_open > --- > > I'm not sure if the avcodec_open behaviour is the expected one or not, > but seems correct according our doxy on width,height and co

Re: [libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-22 Thread aviad rozenhek
On Sun, Aug 21, 2011 at 19:27, Luca Barbato wrote: > This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. > > coded_{width, height} overwrites width and height in avcodec_open > --- > > I'm not sure if the avcodec_open behaviour is the expected one or not, > but seems correct according o

[libav-devel] [PATCH] Revert "h264: Properly set coded_{width, height} when parsing H.264."

2011-08-21 Thread Luca Barbato
This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. coded_{width, height} overwrites width and height in avcodec_open --- I'm not sure if the avcodec_open behaviour is the expected one or not, but seems correct according our doxy on width,height and coded_ variant. libavcodec/h264.c |