Browse Source

Merge branch 'hartkopp-master'

tags/v1.1
Bernhard Fröhlich 4 years ago
parent
commit
e7f479f17d
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      drmdecrypt.c

+ 6
- 2
drmdecrypt.c View File

@@ -250,13 +250,17 @@ int decode_packet(unsigned char *data)
250 250
    trace(TRC_DEBUG, "Contains payload      : 0x%x", data[3] & 0x10);
251 251
    trace(TRC_DEBUG, "Continuity counter    : 0x%x", data[3] & 0x0f);
252 252
 
253
-   if((data[3] & 0x20) == 0x01)
253
+   /* only process scrambled content */
254
+   if(((data[3] & 0xC0) != 0xC0) && ((data[3] & 0xC0) != 0x80))
255
+     return 1;
256
+
257
+   if(data[3] & 0x20)
254 258
 	   trace(TRC_DEBUG, "Adaptation Field length: 0x%x", data[4]+1);
255 259
 
256 260
    offset=4;
257 261
 
258 262
    /* skip adaption field */
259
-   if((data[3] & 0x20) == 0x01)
263
+   if(data[3] & 0x20)
260 264
       offset += (data[4]+1);
261 265
 
262 266
    /* remove scrambling bits */

Loading…
Cancel
Save