summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-05-23 15:10:27 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2003-05-23 15:10:27 +0000
commit65ca934786510b1055b9e2e51eade61729ab86df (patch)
tree48b469a63558148efa9ea4066e8c4026f1e70476
parent170b15b83459e3197a314870806ff2886fb4035f (diff)
downloadxine-lib-65ca934786510b1055b9e2e51eade61729ab86df.tar.gz
xine-lib-65ca934786510b1055b9e2e51eade61729ab86df.tar.bz2
Fix some problems with playing .avi streams.
Sound should be much better now. I think handling of buf->pts values might need work though. CVS patchset: 4907 CVS date: 2003/05/23 15:10:27
-rw-r--r--src/liba52/xine_decoder.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/liba52/xine_decoder.c b/src/liba52/xine_decoder.c
index d12036319..8a9a35e9c 100644
--- a/src/liba52/xine_decoder.c
+++ b/src/liba52/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.52 2003/05/17 23:02:15 jcdutton Exp $
+ * $Id: xine_decoder.c,v 1.53 2003/05/23 15:10:27 jcdutton Exp $
*
* stuff needed to turn liba52 into a xine decoder plugin
*/
@@ -409,8 +409,9 @@ void a52dec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->sync_state = 1;
this->frame_ptr = this->frame_buffer+2;
- } else break;
- /* Fall through */
+ }
+ break;
+
case 1: /* Looking for enough bytes for sync_info. */
*this->frame_ptr++ = *current++;
if ((this->frame_ptr - this->frame_buffer) > 16) {
@@ -452,7 +453,8 @@ void a52dec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITRATE] = this->a52_bit_rate;
this->stream->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] = this->a52_sample_rate;
}
- } else break;
+ }
+ break;
case 2: /* Filling frame_buffer with sync_info bytes */
*this->frame_ptr++ = *current++;