summaryrefslogtreecommitdiffstats
path: root/libavcodec/ituh263dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ituh263dec.c')
-rw-r--r--libavcodec/ituh263dec.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index a16b17f..34a9e81 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -1086,13 +1086,15 @@ int ff_h263_decode_picture_header(MpegEncContext *s)
}
if (s->pict_type!=AV_PICTURE_TYPE_B) {
- s->time= s->picture_number;
- s->pp_time= s->time - s->last_non_b_time;
- s->last_non_b_time= s->time;
+ s->time = s->picture_number;
+ s->pp_time = s->time - s->last_non_b_time;
+ s->last_non_b_time = s->time;
}else{
- s->time= s->picture_number;
- s->pb_time= s->pp_time - (s->last_non_b_time - s->time);
- if(s->pp_time <=s->pb_time || s->pp_time <= s->pp_time - s->pb_time || s->pp_time<=0){
+ s->time = s->picture_number;
+ s->pb_time = s->pp_time - (s->last_non_b_time - s->time);
+ if (s->pp_time <=s->pb_time ||
+ s->pp_time <= s->pp_time - s->pb_time ||
+ s->pp_time <= 0){
s->pp_time = 2;
s->pb_time = 1;
}
OpenPOWER on IntegriCloud