diff libmpdemux/demux_mov.c @ 17982:c28298d1cbf7

Fix passing qdm2 extradata to lavc decoder It was broken in rev 1.142, that code does not behave the same as the old one in some cases
author rtognimp
date Mon, 27 Mar 2006 21:37:18 +0000
parents 3fe3b2b3a6ce
children f72bc5754209
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Mon Mar 27 19:43:46 2006 +0000
+++ b/libmpdemux/demux_mov.c	Mon Mar 27 21:37:18 2006 +0000
@@ -745,7 +745,11 @@
 				mp_msg(MSGT_DEMUX, MSGL_V, "MOV: Found little endian PCM data, reversed fourcc:%04x\n", sh->format);
 			  }
 		          break;
-		         default: break;
+		         default:
+			  if (len > 8 && len + 44 <= trak->stdata_len) {
+				sh->codecdata_len = len-8;
+				sh->codecdata = trak->stdata+44+8;
+			  }
 		        }
 		    } else {
 		      if (len > 8 && len + 44 <= trak->stdata_len) {