]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/wmv2.c
Make sure that if a stream has a duration but the container doesn't
[ffmpeg] / libavcodec / wmv2.c
index 35eab80020473f37703f5aa77f93dfb71d841323..8680d367395d623299a8b774c99ad21e9d5e17f9 100644 (file)
@@ -16,7 +16,6 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with FFmpeg; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
  */
 
 /**
@@ -364,7 +363,7 @@ return -1;
     if(s->picture_number==0)
         decode_ext_header(w);
 
-    s->pict_type = get_bits(&s->gb, 1) + 1;
+    s->pict_type = get_bits1(&s->gb) + 1;
     if(s->pict_type == I_TYPE){
         code = get_bits(&s->gb, 7);
         av_log(s->avctx, AV_LOG_DEBUG, "I7:%X/\n", code);