]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpeg.c
Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".
[ffmpeg] / libavformat / mpeg.c
index a186cfb02e341cafdfe6db4dd1dff94378630ebd..17b5aba13c864e19da57dbb3da38fd4eff9763ad 100644 (file)
@@ -413,7 +413,7 @@ static int mpegps_read_packet(AVFormatContext *s,
     enum CodecID codec_id = CODEC_ID_NONE;
     enum CodecType type;
     int64_t pts, dts, dummy_pos; //dummy_pos is needed for the index building to work
-    uint8_t dvdaudio_substream_type;
+    uint8_t av_uninit(dvdaudio_substream_type);
 
  redo:
     len = mpegps_read_pes_header(s, &dummy_pos, &startcode, &pts, &dts);
@@ -487,7 +487,7 @@ static int mpegps_read_packet(AVFormatContext *s,
         codec_id = CODEC_ID_PCM_DVD;
     } else if (startcode >= 0xb0 && startcode <= 0xbf) {
         type = CODEC_TYPE_AUDIO;
-        codec_id = CODEC_ID_MLP;
+        codec_id = CODEC_ID_TRUEHD;
     } else if (startcode >= 0xc0 && startcode <= 0xcf) {
         /* Used for both AC-3 and E-AC-3 in EVOB files */
         type = CODEC_TYPE_AUDIO;