Mercurial > libavcodec.hg
diff h263.c @ 2243:b8bad8bbbc64 libavcodec
check if the user specified timestamps are strictly monotone
timestamp guess code 10l fix
author | michael |
---|---|
date | Mon, 20 Sep 2004 13:47:47 +0000 |
parents | 4f8da6a9e6eb |
children | 1085c5284bf1 |
line wrap: on
line diff
--- a/h263.c Sun Sep 19 16:38:54 2004 +0000 +++ b/h263.c Mon Sep 20 13:47:47 2004 +0000 @@ -2112,11 +2112,13 @@ if(s->pict_type==B_TYPE){ s->pb_time= s->pp_time - (s->last_non_b_time - s->time); + assert(s->pb_time > 0 && s->pb_time < s->pp_time); }else{ s->last_time_base= s->time_base; s->time_base= time_div; s->pp_time= s->time - s->last_non_b_time; s->last_non_b_time= s->time; + assert(s->pp_time > 0); } }