Mercurial > libavformat.hg
comparison mpeg.c @ 174:7d56e9f83fdb libavformat
Write correct MPEG2-PS streams patch by (mru at users dot sourceforge dot net (Mns Rullgrd))
author | michaelni |
---|---|
date | Tue, 15 Jul 2003 22:15:37 +0000 |
parents | e4d2f704bf80 |
children | d1290621cc6a |
comparison
equal
deleted
inserted
replaced
173:38f64fabb24b | 174:7d56e9f83fdb |
---|---|
73 | 73 |
74 init_put_bits(&pb, buf, 128, NULL, NULL); | 74 init_put_bits(&pb, buf, 128, NULL, NULL); |
75 | 75 |
76 put_bits(&pb, 32, PACK_START_CODE); | 76 put_bits(&pb, 32, PACK_START_CODE); |
77 if (s->is_mpeg2) { | 77 if (s->is_mpeg2) { |
78 put_bits(&pb, 2, 0x2); | 78 put_bits(&pb, 2, 0x1); |
79 } else { | 79 } else { |
80 put_bits(&pb, 4, 0x2); | 80 put_bits(&pb, 4, 0x2); |
81 } | 81 } |
82 put_bits(&pb, 3, (uint32_t)((timestamp >> 30) & 0x07)); | 82 put_bits(&pb, 3, (uint32_t)((timestamp >> 30) & 0x07)); |
83 put_bits(&pb, 1, 1); | 83 put_bits(&pb, 1, 1); |