]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Boolean, not bitwise AND. Thanks mla!
authorAndreas Öman <andreas@lonelycoder.com>
Mon, 8 Nov 2010 09:51:44 +0000 (09:51 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Mon, 8 Nov 2010 09:51:44 +0000 (09:51 +0000)
src/parser_h264.c

index 7f31f2362ff4c91c3a1e2153137c3b053fb4dffc..8b17fb8261ed17782a45d586c8890d9eceee4caf 100644 (file)
@@ -413,7 +413,7 @@ h264_decode_slice_header(th_stream_t *st, bitstream_t *bs, int *pkttype,
     int w = p->sps[sps_id].aspect_num * st->st_width;
     int h = p->sps[sps_id].aspect_den * st->st_height;
 
-    if(w & h) { 
+    if(w && h) { 
       int d = gcd(w, h);
       st->st_aspect_num = w / d;
       st->st_aspect_den = h / d;