Originally committed as revision 22037 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -465,6 +465,10 @@ union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
|
| 465 | 465 |
#define AV_COPY(n, d, s) \ |
| 466 | 466 |
(((av_alias##n*)(d))->u##n = ((const av_alias##n*)(s))->u##n) |
| 467 | 467 |
|
| 468 |
+#ifndef AV_COPY16 |
|
| 469 |
+# define AV_COPY16(d, s) AV_COPY(16, d, s) |
|
| 470 |
+#endif |
|
| 471 |
+ |
|
| 468 | 472 |
#ifndef AV_COPY32 |
| 469 | 473 |
# define AV_COPY32(d, s) AV_COPY(32, d, s) |
| 470 | 474 |
#endif |
| ... | ... |
@@ -489,6 +493,10 @@ union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
|
| 489 | 489 |
|
| 490 | 490 |
#define AV_ZERO(n, d) (((av_alias##n*)(d))->u##n = 0) |
| 491 | 491 |
|
| 492 |
+#ifndef AV_ZERO16 |
|
| 493 |
+# define AV_ZERO16(d) AV_ZERO(16, d) |
|
| 494 |
+#endif |
|
| 495 |
+ |
|
| 492 | 496 |
#ifndef AV_ZERO32 |
| 493 | 497 |
# define AV_ZERO32(d) AV_ZERO(32, d) |
| 494 | 498 |
#endif |