[patch] fix dr_56 typo
Johann Hanne <[email protected]>
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <200704192328.11460.jhml__25330.0353339457$1177007270$gmane$org@gmx.net> |
Hi, (p_descriptor->i_tag != 0x56 || p_descriptor->i_tag != 0x46) is probably always true ;-) Cheers, Johann
libdvbpsi-svn142-dr_56-fix.patch
(text/x-diff, 484 B)
--- libdvbpsi-svn142/src/descriptors/dr_56.c.orig 2007-04-19 23:13:51.000000000 +0200
+++ libdvbpsi-svn142/src/descriptors/dr_56.c 2007-04-19 23:14:02.000000000 +0200
@@ -51,7 +51,7 @@
dvbpsi_teletext_dr_t * p_decoded;
/* Check the tag */
- if(p_descriptor->i_tag != 0x56 || p_descriptor->i_tag != 0x46)
+ if(p_descriptor->i_tag != 0x56 && p_descriptor->i_tag != 0x46)
{
DVBPSI_ERROR_ARG("dr_46/56 decoder", "bad tag (0x%x)", p_descriptor->i_tag);
return NULL;