[FFmpeg-devel] [PATCH] Implement PAFF in H.264

Michael Niedermayer michaelni
Wed Jul 23 22:36:49 CEST 2008


On Wed, Jul 23, 2008 at 02:28:46PM -0400, Jeff Downs wrote:
> On Mon, 21 Jul 2008, Michael Niedermayer wrote:
> 
> [...]
> 
> > > +            /* Frame or first field in a potentially complementary pair */
> > 
> > > +            assert(!s->current_picture_ptr);
> > 
> > This assert is false for FM1_BT_B.h264 and FM2_SVA_C.264, please fix this!
> 
> This assert was to indicate if we would be allocating a new picture 
> (frame_start) without cleaning up the old one.  This was important until 
> recently because all pictures were marked reference when created, and not 
> cleared unless they got to frame_end (where current_picture_ptr is 
> cleared).
> 
> Your recent change (sensibly!) sets references off unless marked as such.
> 
> For at least FM1_BT_B.h264, the assert is tripped because processing of a 
> frame is aborted (QP 4294967295 out of range) and the next frame 
> processing begins w/out cleaning up current_picture_ptr.
> 
> At this point, assuming you are ok with the current_picture_ptr NOT being 
> cleared on frame processing errors, the assert could be changed to: 
> 
> assert(!s0->current_picture_ptr || !s0->current_picture_ptr->reference)

ok, and thanks for the problem analysis

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080723/d0d51cdc/attachment.pgp>



More information about the ffmpeg-devel mailing list