| ... | ... |
@@ -100,10 +100,10 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap |
| 100 | 100 |
else |
| 101 | 101 |
dv->format = DV1394_NTSC; |
| 102 | 102 |
} |
| 103 |
-#endif |
|
| 104 | 103 |
|
| 105 | 104 |
if (ap->channel) |
| 106 | 105 |
dv->channel = ap->channel; |
| 106 |
+#endif |
|
| 107 | 107 |
|
| 108 | 108 |
/* Open and initialize DV1394 device */ |
| 109 | 109 |
dv->fd = open(context->filename, O_RDONLY); |
| ... | ... |
@@ -159,8 +159,10 @@ static int dc1394_v1_read_header(AVFormatContext *c, AVFormatParameters * ap) |
| 159 | 159 |
if (dc1394_read_common(c,ap,&fmt,&fps) != 0) |
| 160 | 160 |
return -1; |
| 161 | 161 |
|
| 162 |
+#if FF_API_FORMAT_PARAMETERS |
|
| 162 | 163 |
if (ap->channel) |
| 163 | 164 |
dc1394->channel = ap->channel; |
| 165 |
+#endif |
|
| 164 | 166 |
|
| 165 | 167 |
/* Now let us prep the hardware. */ |
| 166 | 168 |
dc1394->handle = dc1394_create_handle(0); /* FIXME: gotta have ap->port */ |
| ... | ... |
@@ -453,8 +453,10 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap) |
| 453 | 453 |
|
| 454 | 454 |
streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; |
| 455 | 455 |
|
| 456 |
+#if FF_API_FORMAT_PARAMETERS |
|
| 456 | 457 |
if (ap->channel > 0) |
| 457 | 458 |
s->channel = ap->channel; |
| 459 |
+#endif |
|
| 458 | 460 |
|
| 459 | 461 |
/* set tv video input */ |
| 460 | 462 |
memset (&input, 0, sizeof (input)); |
| ... | ... |
@@ -235,8 +235,8 @@ typedef struct AVFormatParameters {
|
| 235 | 235 |
int width; |
| 236 | 236 |
int height; |
| 237 | 237 |
enum PixelFormat pix_fmt; |
| 238 |
- int channel; /**< Used to select DV channel. */ |
|
| 239 | 238 |
#if FF_API_FORMAT_PARAMETERS |
| 239 |
+ attribute_deprecated int channel; /**< Used to select DV channel. */ |
|
| 240 | 240 |
attribute_deprecated const char *standard; /**< deprecated, use demuxer-specific options instead. */ |
| 241 | 241 |
attribute_deprecated unsigned int mpeg2ts_raw:1; /**< deprecated, use mpegtsraw demuxer */ |
| 242 | 242 |
/**< deprecated, use mpegtsraw demuxer-specific options instead */ |