OSDN Git Service

remove unnecessary shift
authorIvo van Poorten <ivop@euronet.nl>
Sat, 5 Jan 2008 22:10:00 +0000 (22:10 +0000)
committerIvo van Poorten <ivop@euronet.nl>
Sat, 5 Jan 2008 22:10:00 +0000 (22:10 +0000)
Originally committed as revision 11424 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/pva.c

index dd07497..87f79a0 100644 (file)
@@ -73,7 +73,7 @@ static int pva_read_packet(AVFormatContext *s, AVPacket *pkt) {
     flags    = get_byte(pb);
     length   = get_be16(pb);
 
-    pts_flag  = (flags & 0x10) >> 4;
+    pts_flag  = flags & 0x10;
 
     if (syncword != PVA_MAGIC) {
         av_log(s, AV_LOG_ERROR, "invalid syncword\n");