]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/8bps.c
Make strmatch() return 1 only if the string compared against the
[ffmpeg] / libavcodec / 8bps.c
index be5735f608bbc4ff58844b9a34d06013a3f629b1..292c739c1152fc408f9b68153fc7de03b620a35c 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file libavcodec/8bps.c
+ * @file
  * QT 8BPS Video Decoder by Roberto Togni
  * For more information about the 8BPS format, visit:
  *   http://www.pcisys.net/~melanson/codecs/
@@ -100,7 +100,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
                 for(row = 0; row < height; row++) {
                         pixptr = c->pic.data[0] + row * c->pic.linesize[0] + planemap[p];
                         pixptr_end = pixptr + c->pic.linesize[0];
-                        dlen = be2me_16(*(const unsigned short *)(lp+row*2));
+                        dlen = av_be2ne16(*(const unsigned short *)(lp+row*2));
                         /* Decode a row of this plane */
                         while(dlen > 0) {
                                 if(dp + 1 >= buf+buf_size) return -1;