Mercurial > libavcodec.hg
comparison parser.c @ 9038:d4c12f2d226b libavcodec
Add timestamp computation if values are exported by decoder.
Patch by Ivan Schreter, schreter gmx net
| author | cehoyos |
|---|---|
| date | Tue, 24 Feb 2009 22:19:09 +0000 |
| parents | cdd8fa4a362a |
| children | cecf81f93756 |
comparison
equal
deleted
inserted
replaced
| 9037:e2f94ff2f2e3 | 9038:d4c12f2d226b |
|---|---|
| 73 } | 73 } |
| 74 s->fetch_timestamp=1; | 74 s->fetch_timestamp=1; |
| 75 s->pict_type = FF_I_TYPE; | 75 s->pict_type = FF_I_TYPE; |
| 76 s->key_frame = -1; | 76 s->key_frame = -1; |
| 77 s->convergence_duration = AV_NOPTS_VALUE; | 77 s->convergence_duration = AV_NOPTS_VALUE; |
| 78 s->dts_sync_point = INT_MIN; | |
| 79 s->dts_ref_dts_delta = INT_MIN; | |
| 80 s->pts_dts_delta = INT_MIN; | |
| 78 return s; | 81 return s; |
| 79 } | 82 } |
| 80 | 83 |
| 81 void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){ | 84 void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){ |
| 82 int i; | 85 int i; |
